24 Jun
2013
24 Jun
'13
5:13 a.m.
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.