Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 393 Bytes
#include <bits/stdc++.h>
int main()
{
// Unordered map
std::unordered_map<int, int> order;
// Mapping values to keys
order[5] = 10;
order[3] = 5;
order[20] = 100;
order[1] = 1;
// Iterating the map and printing unordered values
for (auto i = order.begin(); i != order.end(); i++)
{
std::cout << i->first << " : " << i->second << '\n';
}
}
You can’t perform that action at this time.