#include#include
#includeIn this example, we create a pair object myPair to store the key-value pair (2, "two"). We then use the insert() function with myPair to insert the key-value pair into the map. We can access the value of a key in the map using the [] operator. The map container and its functions are a part of the C++ Standard Library (STL).#include