<<< std::map | Index | Adding items to a map >>> |
Declarations look like this:
map< string, int > mymap;
Other constructors for copying, or construction from a range of pairs (e.g. a vector).
vector< pair < string, int > > myvect; //... map< string, int > mymap2( myvect.begin(), myvect.end() );
<<< std::map | Index | Adding items to a map >>> |