Hi all,

I already expected that there is no possibility (because of the fact that containers and their iterators are strictly separated - as GNiewerth quite correctly mentioned).

Well, the reason why I was looking for is a long story. In short:
I have built an own container-class-template which in fact consists of a map of maps, each again contain maps with elements (principle: map<key1, map<key2, map<key3, value> > >). Now I also built an new iterator-class which allows to iterate through these folded maps in a distinct way (lets call it a super-iterator). This new iterator-class internally uses STL-map-iterators for example to iterate through the most inner maps. When I now want to compare two of these super-iterators it would be a bit more performant, when I could get the information to which container (inner map) the inner interator belongs to, just from the iterator alone.
But it's no problem if this possibility doesn't exist, because I have all informations within my super-iterator-class. It is only a question of performance, nothing else.

Thank you for your answers.

Best regards,
Physicus.