
9 Jun
2009
9 Jun
'09
3:29 p.m.
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@gmail.com