By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,134 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,134 IT Pros & Developers. It's quick & easy.

map that maps to iterators in the same map ?

P: n/a
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.


Jul 22 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.