why not using an stl algorithm? If you use ordered_non_unique you can use the for_each algorithms with an inserter functor.

Ovanes



On Tue, Apr 28, 2009 at 3:46 PM, arm2arm <arm2arm@gmail.com> wrote:

Hello,
Are there way to merge two multiindex objects ?
suppouse we have :

struct strData{
int id;
float a, b;
strData(int id_, float a_, float b_):a(a_),b(b_),id(id_){}
};

typedef multi_index_container<
   strData,
   indexed_by<
   ordered_unique<
   tag<id>,  BOOST_MULTI_INDEX_MEMBER(strData,int,id)>,
   ordered_non_unique<
   tag<snap>,BOOST_MULTI_INDEX_MEMBER(strData,float,a)>
   >
   > data_setA, data_setB;
Are there way to do:

data_setA.merge(data_setB) ?

thank you beforehand.
Arman.
--
View this message in context: http://www.nabble.com/Boost.MultiIndex-question-on-merge-tp23277496p23277496.html
Sent from the Boost - Users mailing list archive at Nabble.com.

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users