By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,290 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

allocator size_type

P: n/a
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.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Fraser Ross" <fraserATmembers.v21.co.unitedkingdom> wrote in message
news:3f******@news.greennet.net...
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
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.