Hello,

I have a data structure which basically is a map of a map. It looks follwing

class clss
{
        void postprocess() { .... }
}

typedef std::map<int, clss> ciMap;
typedef std::map<int, ciMap> ciiMap;

ciiMap test;

now in order to call postprocess() on each element in the second map I have to do the follwing:

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?

Cheers
___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.

Please refer to http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H  for additional disclosures.