I have a map<string, string> and I need to fill it with default pairs on construction. like "Sam" : "good", "ram" : "bad". How in C++03 to do it most readably in code terms on construction?
I have a map<string, string> and I need to fill it with default pairs
Share
boost::assign::map_list_oflets you do this with some pretty looking syntax, but if you can’t use Boost, you could write your own.