Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > map that maps to iterators in the same map ?

Thread Tools

map that maps to iterators in the same map ?

Posts: 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.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Returning map from map of maps without any copy ittium C++ 4 12-08-2011 05:59 AM
MSN maps vs. Google maps Ralph Fox NZ Computing 0 07-30-2007 10:30 AM
STL: Map of maps possible, but no multi-map of maps? Workarounds? Marcus C++ 2 12-09-2005 06:34 AM
std::maps within std::maps -- optimisation Simon Elliott C++ 4 03-10-2005 10:11 AM