Found this Multimap containing pairs?, but it is not much help
How would I insert two strings into pair? Below, my two failed attempts.
multimap<string, pair<string,string> > mymm;
mymm["Alex"] = std::pair<"000","000">; //errors
mymm.insert(pair<string, pair<string, string> >
("Alex", std::pair<"000","000">); // errors out as well
I am using Visual Studio 2010, 32 bit. Thanks !
A multimap doesn’t allow lookup using operator [], since there may be more than one match.
make_pair is a convenient way to create a pair without having to specify the types explicitly. Without using make_pair, you would need to do something like this: