Lieven wrote in news:41af1926$0$25065$ in
comp.lang.c++:
> Is there a way in C++, given an iterator, I can get the container it's
> pointing to, in analogy of anIterator::value_type which gives the type of
> the elements of the container ?
>
>
No, sorry. There simply isn't enough information associated with
an iterator type to work back to the container.
As an example a T * type could be an iterator into an inbuilt array
T array[ 100 ] or a std::vector< T >.
Rob.
--
http://www.victim-prime.dsl.pipex.com/