
Thanks for the reply..
Let me put my requirement more clear.
I want to loop through and get all the element Ids[ member
Hi How could I loop through the container to get all the keys. Eg: For(int i=0;i< beambook.count();++i) Or Beambook:: iter1 = beambook.begin(), iter2 = beambook.end();
My requirement is to loop through the size and list compositeKey vs list of element Ids
Thanks, UJ
// define a multi_index_container with a composite key on typedef multi_index_container< Beam_entry, indexed_by< //non-unique as some might have more than ids ordered_non_unique< composite_key< Beam_entry, member
, member , member , member , member , member > >, ordered_unique< member > > beambook;
for (beambook::iterator iter = container.begin(), i_end = container.end(); iter != i_end; iter = container.upper_bound (get key from iter)) _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users