Boost logo

Boost :

Subject: Re: [boost] Proposal: Monotonic Containers
From: Simonson, Lucanus J (lucanus.j.simonson_at_[hidden])
Date: 2009-06-15 17:12:57


Christian Schladetsch wrote:
> What I see instead is that containers like chain<> can use
> monotonic::storage where some of the earlier links are on the stack,
> and
> when that is exhausted, the remaining links go on the heap. This is
> transparent to the chain. Similiarly for other node-based containers,
> but this cannot work for obvious reasons for vector.

Your allocator needs to be smart about what to do if a request for something larger than the chunk size comes in.

Luke


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