How to template a type and rename it

Nov 4, 2021 at 3:41pm
What I want can be illustrated in the following code :) It is of course not correct, but you should know what I mean.

If template a data type and rename it, then it would be great!

 
  using SomeMap = template<class Value> std::map<std::string, Value>> ;
Nov 4, 2021 at 3:44pm
Did you mean to create a alias template?

template<class Value> using SomeMap = std::map<std::string, Value>>;
Last edited on Nov 4, 2021 at 3:45pm
Nov 4, 2021 at 4:06pm
Thank you!
Topic archived. No new replies allowed.