Assume the following two functions:
#include <iostream>
Each of these functions takes two arguments, but can be converted to a callable object that takes only one argument using (std / boost) bind . Something like:
boost::bind(match1, "a test"); boost::bind(match2, 42);
I want to be able to get from two such functions that take one argument and return bool , a callable object that takes two arguments and returns && from bool s . The type of arguments is arbitrary.
Something like operator&& for functions returning bool .
c ++ boost bind
Giovanni funchal
source share