//myListswap1.cpp #include #include #include using namespace std; //myMapLowerBound1.cpp int main() { map m1; map::iterator it, itup, itlow; // m1["A"] ="Apple"; m1["B"] ="Banana"; m1["C"] ="Coffee"; // m1["A1"] ="Alpha"; m1["B1"] ="Beta"; m1["C1"] ="Charlie"; for(it= m1.begin(); it !=m1.end(); it++) { cout<<"\n"<<(*it).first<<" ::: "<< (*it).second; } itlow= m1.lower_bound("C"); m1.erase(itlow); cout<<"\n--lower bound ---"; for(it= m1.begin(); it !=m1.end(); it++) { cout<<"\n"<<(*it).first<<" ::: "<< (*it).second; } return 0; }