From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-08-31 14:51:18
Gregory Colvin wrote:
Two small corrections:
> shared_ptr currently uses std::allocator to allocate counts
No, it uses plain new/delete by default. It is possible to get it to use
std::allocator via a #define.
> versus standard Allocator
> Allocator::pointer p = allocator.allocate(sizeof T);
> allocator.deallocate(sizeof T);
allocate(1) and deallocate(p, 1) if I'm not mistaken.
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk