Boost logo

Boost :

Subject: Re: [boost] Proposal: Monotonic Containers
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-06-09 11:29:43


> Most of the messages here ignore an important detail, quoted from Scott
> Meyer's Effective STL, item 10:

<snip>

To summarize, std::vector<T, monotonic_allocator<T> > won't work if each

Well, sure... if you want to be "effective" :)

For some reason, that book isn't sitting on my desk, but that's a really
nicely summarized argument. This isn't the first time, however, that
somebody has proposed allocators that require non-static members (
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1850.pdf) - see
buffer_allocator.

This may be a special class of allocators that requires special attention.

Andrew Sutton
andrew.n.sutton_at_[hidden]


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