Boost logo

Boost Users :

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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net