1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
// multiset::cbegin/cend
#include <iostream>
#include <set>
int main ()
{
std::multiset<int> mymultiset = {10,20,30,20,10};
std::cout << "mymultiset contains:";
for (auto it=mymultiset.cbegin(); it != mymultiset.cend(); ++it)
std::cout << ' ' << *it;
std::cout << '\n';
return 0;
}
|