Suppose I have an object of some naturally-occurring reasonably fiddly C++ STL type: say
map<float,vector<map<string,pair<int,clipper::Coord_orth> > > > W;
and I want to iterate over it.
Is there any way that I can say something like typeof(W)::iterator, rather than having to write for loops whose initialiser is already wider than the screen?
for (map<float,vector<map<string,pair<int,clipper::Coord_orth> > > >::iterator Z = W.begin(); Z != W.end(); Z++)
map<float,vector<map<string,pair<int,clipper::Coord_orth> > > > W;
and I want to iterate over it.
Is there any way that I can say something like typeof(W)::iterator, rather than having to write for loops whose initialiser is already wider than the screen?
for (map<float,vector<map<string,pair<int,clipper::Coord_orth> > > >::iterator Z = W.begin(); Z != W.end(); Z++)
no subject
Date: 2008-03-14 12:04 pm (UTC)no subject
Date: 2008-03-14 12:33 pm (UTC)no subject
Date: 2008-03-14 01:56 pm (UTC)no subject
Date: 2008-03-14 02:07 pm (UTC)no subject
Date: 2008-03-14 02:26 pm (UTC)no subject
Date: 2008-03-14 02:00 pm (UTC)auto Z = W.begin()
no subject
Date: 2008-03-14 02:48 pm (UTC)Module::iterator it = module->getFunctionList().begin();
while (it != module->getFunctionList().end())
{
process_function_header(it);
it++;
}