how to add to a map c++ code example
Example 1: add items to map in c++
mp.insert({ 2, 30 });
Example 2: c++ map insert
mymap.insert ( std::pair<char,int>('a',100) );
mp.insert({ 2, 30 });
mymap.insert ( std::pair<char,int>('a',100) );