Check out example codes for "add items to map in c++". It will help you in understanding the concepts better.

Code Example 1

mp.insert({ 2, 30 });

Learn ReactJs, React Native from akashmittal.com