24 #include <boost/lexical_cast.hpp> 39 using boost::lexical_cast;
42 using IntSet = std::set<uint>;
45 show (IntSet
const& coll)
53 select_match (
string description)
55 return [&](uint candidate)
57 return string::npos != description.find( lexical_cast<string> (candidate));
88 for (
int i=0; i<10; ++i)
93 cout <<
"removed " << elems_to_remove <<
" ---> ";
Simplistic test class runner.
void test_remove(string elems_to_remove)
void for_each(CON const &elements, FUN function, P1 &&bind1, ARGS &&...args)
Accept binding for arbitrary function arguments.
bool remove_if(SET &set, FUN test)
remove all elements fulfilling a given predicate from a (sorted) set.
Perform operations "for each element" of a collection.