Boost logo

Boost Users :

Subject: [Boost-users] Multi_index composite_key~~
From: isjk (isjk_at_[hidden])
Date: 2010-07-20 23:44:49


hi all,
  
 now,I have a composite_key like this,
  struct leader_key
  : boost::multi_index::composite_key<
  channel_info,
  BOOST_MULTI_INDEX_MEMBER(channel_info, boost::uint64_t, st_md5_),
  BOOST_MULTI_INDEX_MEMBER(channel_info, boost::uint32_t, st_rank_),
  BOOST_MULTI_INDEX_MEMBER(channel_info, boost::uint8_t, st_degrees_),
  BOOST_MULTI_INDEX_MEMBER(channel_info, boost::uint8_t, st_lan_type_)
>
 {
 };
 I used "md5, rank, degrees, lan_type" to query.
 I want to the result like this,
 equal to md5,
 less than rank
 degrees from small to large
 equal to lan_type
  
How should I do?



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net