|
Boost Users : |
Subject: Re: [Boost-users] Using boost with map<int, map<int, class> >
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-09-23 12:01:08
AMDG
On 9/23/2010 4:18 AM, przemyslaw.sliwa_at_[hidden] 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net