
14 Feb
2012
14 Feb
'12
6:26 p.m.
Out of curiosity I have one more variation on _if vs non _if. Since you can use distance instead of count_if, how would you go about replacing find_if with a non _if variant? For example: struct data { int a; int b; }; // function object that takes two data parameters - contents unimportant for the example struct match_data; std::vector<data> data_range; data search_value; boost::find_if( data_range, boost::bind(match_data(), _1, search_value) ); Thanks, -- Bill