map that maps to iterators in the same map ?

V

Vlad

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top