Using boost with map<int, map<int, class> >
Hello,
I have a data structure which basically is a map of a map. It looks
follwing
class clss
{
void postprocess() { .... }
}
typedef std::map
AMDG On 9/23/2010 4:18 AM, przemyslaw.sliwa@uk.bnpparibas.com wrote:
for(ciiMap::iterator i_ptr=test.begin(); i_ptr!=test.end(); ++i_ptr) { ciMap& tmpMap = (*i_ptr).second;
for(ciMap::iterator j_ptr=tmpMap.begin(); j_ptr!=tmpMap.end(); ++j_ptr) { cls& temp = (*j_ptr).second; temp.postprocess; } }
Can boost help me reducing this ridiculous loop? Should I use lambda or boost::bind in order to do this? Couls someone help me with this?
You could try BOOST_FOREACH. In Christ, Steven Watanabe
participants (2)
-
przemyslaw.sliwa@uk.bnpparibas.com
-
Steven Watanabe