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<
  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, kalb at, bjorn.karlsson at, gregod at, wekempf at