Lack of pointer Typedef in STL container

M

ManicQin

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?
 
B

Barry

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?

C++03 has "pointer" typedef.

What's implementation you checked out?

Here I check out sgi, it has "pointer"
VC2005, it has
 
M

ManicQin

C++03 has "pointer" typedef.

What's implementation you checked out?

Here I check out sgi, it has "pointer"
VC2005, it has

You're right, The first time I checked in VS6 but after your post I
checked my VS Express and found it.
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,949
Members
47,500
Latest member
ArianneJsb

Latest Threads

Top