map entryset loop code example
Example: iterate through map
//traditional way (long)
for(map::iterator it=m.begin(); it!=m.end(); ++it)
if(it->second)cout<first<<" ";
//easy way(short) just works with c++11 or later versions
for(auto &x:m)
if(x.second)cout<