OK, so here's my situation - pretty straightforward but I'm not sure how it can work (I can find no documentation whatsoever...) :
I have an Unordered_map
:
typedef unsigned long long U64;
typedef boost::unordered_map<U64, U64> HASH;
And I would like to loop through the elements (mainly the keys), pretty much like using PHP foreach
, but this time using BOOST_FOREACH
, I suspect something like :
HASH myMap;
// .. assignment, etc...
BOOST_FOREACH (U64 key, myMap)
{
// do sth with the Key-Value pair
U64 val = myMap[key];
}
Any ideas?