f



map that maps to iterators in the same map ?

Hi,
I wonder if it's possible to implement something like

typedef map<string, T::iterator> T;

i.e. to have a map that will resolve keys to iterators in the map of the 
same type.

In my situation, I'll have only one such map and  can guarantee that all 
iterators will remain valid (I'll only add stuff).

Do such recursive constructions known to cause problems? I can use 
pointers instead of iterators, but it will be much uglier.

Thanks,
Vladimir

0
_v (1)
12/15/2003 8:29:48 PM
comp.lang.c++ 49423 articles. 6 followers. Post Follow

0 Replies
1016 Views

Similar Articles

[PageSpeed] 20

Reply: