multiset

1 multiset<int> mt;
2 mt.clear();
3 mt.insert(x); // insert one
4 cout << mt.count(x) << endl; //
5 mt.erase(mt.find(x));// delete one
6 mt.erase(x); //delete all x

 

posted @ 2022-04-30 11:53  LegendN  阅读(22)  评论(0编辑  收藏  举报