ManicQin wrote:
Looking at vector's header I can see that they provided me with a:
typedef A::reference reference;
But there's no typedef for a pointer to A...
Don't get me wrong I can easily write vector<someting>::value_type*
but it makes me wonder why supplying a typedef for reference
and not for pointer? Any special reasons you know of?
The type 'reference' is returned by 'back' or 'front'. Probably due
to the presence of 'vector<bool>' specialisation, which does *not*
have 'reference' as the synonym to 'bool&' prompted the creation of
the 'reference' type. 'pointer' is simply not needed anywhere.
Correct me, somebody.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask