Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Python is Slow: Looking Under the Hood. Parent comment
C++11:
map<int, char> x = {{1, 'a'}, {3, 'b'}, {5, 'c'}, {7, 'd'}};
Any not-ancient C++ using boost Assign:
map<int, char> x = map_list_of (1, 'a') (3, 'b') (5, 'c') (7, 'd');
Shamelessly stolen from here:
http://stackoverflow.com/questions/138600/initializing-a-sta...
There are no comments on this comment yet.
C++11:
map<int, char> x = {{1, 'a'}, {3, 'b'}, {5, 'c'}, {7, 'd'}};
Any not-ancient C++ using boost Assign:
map<int, char> x = map_list_of (1, 'a') (3, 'b') (5, 'c') (7, 'd');
Shamelessly stolen from here:
http://stackoverflow.com/questions/138600/initializing-a-sta...