I use boost::multi_index and retrieve data like this:
sample_set::index<my_indx>::type::iterator s, end;
boost::tie(s,end) = samples.get<my_indx>().equal_range(
boost::make_tuple( "Dress", "Red" ));
This code retrieves all red dresses. Is there any way to retrieve red and yellow dresses with one query? Like in SQL:
"Select * from clothes where type = 'Dress' and color in ('Red', 'Yellow')"