#include using namespace std; int main(){ unordered_map mymap; mymap["abc"] = 1; mymap["abc1"] = 2; mymap["abc2"] = 3; mymap["abc3"] = 4; mymap["abc4"] = 5; mymap["abc5"] = 6; for(auto it = mymap.begin(); it != mymap.end(); it++){ cout<<"Key :"<first<<" Value : "<second< mymap2; mymap2["abc1"] = 2; mymap2["abc"] = 10; mymap2["abc2"] = 3; mymap2["abc4"] = 5; mymap2["abc3"] = 4; mymap2["abc5"] = 6; for(map::iterator it = mymap2.begin(); it != mymap2.end(); it++){ cout<<"Key :"<first<<" Value : "<second< v; v.push_back(10); v.push_back(2); v.push_back(3); v.push_back(4); v.push_back(5); for(auto it = v.begin() ; it != v.end() ;it++){ cout<<*it<::iterator it = mymap.find("abc"); mymap.erase(mymap.begin() , mymap.end()); /// find if(mymap.find("abc") == mymap.end()){ cout<<"Not present"<::iterator it = mymap.begin(); it != mymap.end(); it++){ cout<<"Key :"<first<<" Value : "<second<