Boost logo

Boost :

Subject: [boost] Question about boost::multi_index::random_access splice()
From: Michael Watkins (condenser_at_[hidden])
Date: 2009-04-13 18:48:48

It appears that when calling splice() for a random_access index in a multi_index container, the splice calls a copy constructor. This is apparently by design (since the documentation says that it will do an insert) but why was this chosen? Is there another method to move an item from one container to another without having to call the copy constructor? Or can the code be changed to do splice the same way that std::list does?

Michael Watkins

Quick access to your favorite MSN content and Windows Live with Internet Explorer 8.

Boost list run by bdawes at, gregod at, cpdaniel at, john at