
21 Nov
2006
21 Nov
'06
6:15 p.m.
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?