On Thu, Jul 10, 2014 at 4:11 PM, Niall Douglas
On 9 Jul 2014 at 22:53, Felipe Magno de Almeida wrote:
[snip]
Nor are allocators consistently used for internals of STL containers. They have to be used for the type being stored of course, but internal data structures not exposed to external code may use any allocator e.g. malloc().
I thought this only applied to non-templated-on-allocator types. For example, list must use the allocator passed, rebound of course, to allocate its node. Or am I completely mistaken? If so then allocators are just fairy tale.
The next TS from ISO has a type erased allocator. Ought to make allocator support much easier.
Niall
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/
Best regards, -- Felipe Magno de Almeida