In the code below:
#include #include #include using namespace std; int main(){ pair p1(1,1);
In the std::map::insert reference it is said that:
Inserts element(s) into the container, if the container doesn't already contain an element with an equivalent key.