Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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 << '
';
return 0;
}
//Output: { 2020, 2019, 2018 }
 
PREVIOUS NEXT
Tagged: #hashset #cpp
ADD COMMENT
Topic
Name
8+5 =