16 Mar
2016
16 Mar
'16
1 a.m.
On 03/15/2016 08:42 PM, Gavin Lambert wrote:
Admittedly I'm not familiar with the changes to allocators in C++11 yet, but C++03 allocators support accepting an allocator (even a stateful one) of one type and then using it to make allocations of a different type, via rebind and a templated constructor. std::list and friends use that functionality extensively.
Yes I'm using rebinds extensively: https://github.com/philippeb8/root_ptr/blob/master/include/boost/smart_ptr/d...