fivemack: (Default)
[personal profile] fivemack
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++)

Date: 2008-03-14 02:07 pm (UTC)
spodlife: Tardis and Tim (Default)
From: [personal profile] spodlife
Sorry, didn't mean to trip your sarcasm detector. Please pretend I didn't include the words "sound so".

Date: 2008-03-14 02:26 pm (UTC)

March 2024

S M T W T F S
     12
3456789
10111213141516
17181920212223
24 252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 30th, 2025 06:21 am
Powered by Dreamwidth Studios