|
-
November 30th, 2006, 04:56 AM
#1
Any possibility to obtain the container of an STL-iterator?
Hi,
does anyone know whether there exist any possibility to obtain (a pointer to) the container an STL-iterator refers to?
For example:
Consider many std::maps all of (e.g.) type std::map<int, float>.
Now you have an iterator of type std::map<int, float>::iterator which belongs to one of these maps and you want to know to which of them it refers to. Is there any possibility to find out (e.g. any function of the iterator which returns a pointer to the container)?
Thanks in advance,
Physicus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|