cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to template a type and rename it
How to template a type and rename it
Nov 4, 2021 at 3:41pm UTC
waschbaerYOYO
(6)
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 UTC
mbozzi
(3933)
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 UTC
Nov 4, 2021 at 4:06pm UTC
waschbaerYOYO
(6)
Thank you!
Topic archived. No new replies allowed.