$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] multi_index_container + composite key
From: Igor R (boost.lists_at_[hidden])
Date: 2011-11-24 04:44:27
> Â Â Â Â Â Elem_entry fc1 = Elem_entry(1,90,99);
> Extracting:
> Â Â Â Â Â elementbook::iterator it;
> Â Â Â Â Â it = pb.find(boost::make_tuple(99,90)); ????? Is it possible to
> simulate this requirement?
How do you expect MIC to know what 99 is and what 90 is? MIC assumes
that the order of tuple elements corresponds to the order of the part
in your composite key:
> Â Â Â Â Â Â Â Â composite_key<
> Â Â Â Â Â Â Â Â Â Â Â Elem_entry,
> Â Â Â Â Â Â Â Â Â Â Â member<Elem_entry,unsigned int,&Elem_entry::node1>,
> Â Â Â Â Â Â Â Â Â Â Â member<Elem_entry,unsigned int,&Elem_entry::node2>
> Â Â Â Â Â Â Â Â Â Â Â >
i.e., the 1st one is node1, and the 2dn one is node2.