1
down vote
One note is that you can also use Boost.Assign:
usingnamespace std;usingnamespace boost::assign;// bring 'map_list_of()' into scopevoid something(){
map<int,int> my_map = map_list_of(1,2)(2,3)(3,4)(4,5)(5,6);}
One note is that you can also use Boost.Assign:
usingnamespace std;usingnamespace boost::assign;// bring 'map_list_of()' into scopevoid something(){
map<int,int> my_map = map_list_of(1,2)(2,3)(3,4)(4,5)(5,6);}