multi_index new user question
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The following is todays log of my efforts to get multi_index to work: - ---First entry: I'm using boost multi index for the first time. I've managed to populate the container with my data & now I am trying to get the non-unique ordered index to work. Does anyone have a source example (not from the boost.multiindex tutorial please) used to get a list, set, whatever, of tuples from such a search on such an index? Thanks, Evan Carew P.S. G++ V3.4.2 Boost version 103300 - ---Second entry: Hmm... Looks like their list server is down. I am unable to register. <sigh> - ---Third entry: Well, lets try this example source code: typedef multi_index::multi_index_container< person, multi_index::indexed_by< multi_index::ordered_unique< multi_index::tag<voterid>, BOOST_MULTI_INDEX_MEMBER(person,unsigned long,voterid)>, multi_index::ordered_non_unique< multi_index::tag<lastname>,BOOST_MULTI_INDEX_MEMBER(person,string,lastname)>, multi_index::ordered_non_unique< multi_index::tag<resstreetnum>, BOOST_MULTI_INDEX_MEMBER(person,int,resstreetnum)> >
people_set;
.....
int main(){
const people_set::nth_index<2>::type& resstreet_index=ps.get<2>();
pair
participants (1)
-
Evan Carew