#include#includeusing namespace std;
int main()
{
// cbegin/cend(c++11): Returns a const_iterator pointing to the first element in the container/
// Returns a const_iterator pointing to the past-the-end element in the container
std::setmyset = { 50, 20, 60, 10, 25 };
std::cout << "myset contains:";
for (auto it = myset.cbegin(); it != myset.cend(); ++it)
std::cout << ' ' << *it;
std::cout << '\n';
system("pause");
return 0;
}
