#include <iostream>
#include <unordered_set>
using std::unordered_multiset;
using std::cout;
using std::endl;
void print(const unordered_multiset<int>& usset)
{
for (const auto& element : usset) {
cout << element << " ";
}
std::cout << std::endl;
}
int main()
{
unordered_multiset<int> uml = { 1, 2, 88, 3, 5, 99, 88 };
auto i = uml.find(88);
if (i != uml.end()) {
uml.erase(i);
}
print(uml);
return 0;
}
/*
run:
1 2 88 99 3 5
*/