Boost logo

Boost :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2006-11-21 13:15:22


Janek Kozicki wrote:

> Is it possible to use those two together? I'm considering storing my
> polymorphic stuff into ptr_container but vector (or other standard
> containers) are not enough for my needs.
>
> Using Boost.MultiIndex with Boost.PtrContainer would be great.

As far as I understand it, pointer containers are more efficient than
containers of smart pointers because standard containers rely on copy
semantics instead of move semantics (currently).
But since we're inside of boost, couldn't multi index be smart enough to
not do copying with smart pointers?


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