allocator size_type

F

Fraser Ross

If anyone has the book Effective STL do you agree that the word value should
be type on P51, 2nd paragraph from the bottom, in the sentence starting 'In
both cases'. allocator's size_type is required to be size_t so why say it
is typically a typedef for size_t?

Fraser.
 
J

John Harrison

Fraser Ross said:
If anyone has the book Effective STL do you agree that the word value should
be type on P51, 2nd paragraph from the bottom, in the sentence starting 'In
both cases'. allocator's size_type is required to be size_t so why say it
is typically a typedef for size_t?

Fraser.

I don't have the book, but allocator's size_type is required to be size_t
only in a STL compatible allocator. It isn't required to be size_t in
general. Of course this begs the question of what would be the point of a
non-STL compatible allocator.

john
 

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
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top