|
Boost Users : |
Subject: Re: [Boost-users] multiindex composite key help
From: Igor R (boost.lists_at_[hidden])
Date: 2013-06-24 01:13:16
> Requirement:
> Given config and type get all cid's
> Below example I am passing config =1; and type = 1; I am expecting all cid's matching both of them. i.e 1 and 2 only
You probably meant to use equal_range(), not find().
find() returns you an iterator to the 1st element having the desired
key, so if you iterate an ordered index from this point to the end,
you get all the elements having a greater or equal key.
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