A
Adam H. Peterson
I have a type T (in a template) which I know (or assume) is a pointer to
a pair type. I would like to find out what the type of the second
element in the pair is. If T were simply a pair, I could get this by
doing something like:
typedef typename T::second_type U;
But how do I handle when T is a _pointer_to_ a pair type (or actually an
iterator type for a pointer to some pair type)?
Thanks in advance,
Adam Peterson
a pair type. I would like to find out what the type of the second
element in the pair is. If T were simply a pair, I could get this by
doing something like:
typedef typename T::second_type U;
But how do I handle when T is a _pointer_to_ a pair type (or actually an
iterator type for a pointer to some pair type)?
Thanks in advance,
Adam Peterson