#include <iostream> #include <unordered_set> int main() { std::unordered_set<int> X { 2020, 2019, 2018 }; for (auto Y: X) std::cout << Y << ' '; return 0; } //Output: { 2020, 2019, 2018 }