Say I have this typedef
typedef std::pair<std::string, uint32_t> MyType;
Then, if I also want to create a map using MyType, how can I do this?
I don't want to re-enter two types in pairs, for example:
map<std::string, uint32_t> myMap;
I need something like:
map<MyType first type, MyType second type> myMap;
Is there a way to do this so using my typedef MyType instead of retyping the types?
source
share