From: David Gruener (gruenedd_at_[hidden])
Date: 2005-04-14 02:15:06


Hello,

how can one swap keys in an *ordered* index of a multi index container?
Well, you cannot say something like:

blah.modify_key(blah.find(foo1), _1 = foo2);
// from now index contains one element fewer, since
// keys must be uniq
blah.modify_key(blah.find(foo2), _1 = foo1);

I dind't found a way in the manual to swap directly.

--David