
hi, now, I have two structures like this, struct peer { int guid_; }; struct channel { int md5_; peer* pr_; int prop_; }; ------------------------------------------ peer and channel is many to many. using example6::key_from_key class; ------------------------------------------ typedef multi_index_container< peer, index_by< ordered_unique< BOOST_MULTI_INDEX_MEMBER(peer, int, guid_) >
peer_table;
typedef multi_index_container< channel, index_by< ordered_non_unique< BOOST_MULTI_INDEX_MEMBER(channel, int, md5_) >
channel_table;
typedef multi_index_container< const channel*, ordered_non_unique< key_from_key< BOOST_MULTI_INDEX_MEMBER(peer, const int, guid_), BOOST_MULTI_INDEX_MEMBER(channel, const peer*, pr_) > >
channel_table_pr_view;
peer_table pt;
channel_table ct;
/// insert very much data....
nth_index