Boost logo

Boost :

Subject: Re: [boost] Proposal: Monotonic Containers
From: Christian Schladetsch (christian.schladetsch_at_[hidden])
Date: 2009-06-09 08:22:44


Hi Andrew,
>
>
> typedef std::vector<T, mono::allocator<T> > Vector;
> Vector v(mono::allocator<T>(store));
>
> It' may appear be as graceful, but it doesn't require the duplication of
> classes, which can be harmful. There are libraries in Boost that specialize
> (templates) on containers types, and new containers would likely fail the
> specializations.

It is possible to use the proposed system without the need for custom
container types.

It is also possible to use STL without the need for default allocator types.

Regards,
Christian.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk