Bryan Green | 21 May 21:04

Re: Containers for already allocated memory

"Chris Jefferson" writes:
> 2008/5/21 Igor R. <igor_rubinov <at> hotmail.com>:
> > Look at Array and Intrusive libraries.
> 
> Thanks, but neither of these really satisfy my requirements:
> 
> Intrusive is for things like lists, rather than a vector-type
> structure, and as it is intrusive, I can't easily put pointers and
> ints in it.
> 
> Arrays do go on the stack, but have to have a compile-type size and
> you can't "push_back" into them.

There's the interprocess library in 1.35.
Take a look at its "stl-compatible" containers, and the managed_external_buffer.

-bryan

Gmane