#include <iostream>
#include <vector>
#include <unordered_set>
void print(std::unordered_set<int> const &us) {
for (auto const &n: us) {
std::cout << n << " ";
}
}
int main()
{
std::vector<int> v = { 4, 6, 7, 0, 14, 80, 21, 99 };
std::unordered_set<int> us(v.begin(), v.end());
print(us);
}
/*
run:
99 21 80 14 0 7 6 4
*/