Gregory Colvin wrote:

[...]

Two small corrections:

> shared_ptr currently uses std::allocator to allocate counts
> regardless.

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.construct(p,T());
>    ...
>    allocator.destroy(p);
>    allocator.deallocate(sizeof T);

allocate(1) and deallocate(p, 1) if I'm not mistaken.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to