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