#include <yat/utility/stl_utility.h>
Public Member Functions | |
compose_f_gx_hy (F f, G g, H h) | |
Constructor. | |
F::result_type | operator() (typename G::argument_type x, typename H::argument_type y) const |
Does the work. | |
Related Functions | |
(Note that these are not member functions.) | |
template<class F , class G , class H > | |
compose_f_gx_hy< F, G, H > | make_compose_f_gx_hy (F f, G g, H h) |
If f is a binary functor, both g and h are unary functors, and return type of g (and h) is convertible to F's argument type, then compose_f_gx_hy can be used to create a functor equivalent to
G::result_type
is convertible to F::first_argument_type
H::result_type
is convertible to F::second_argument_type
compose_f_gx_hy< F, G, H > make_compose_f_gx_hy | ( | F | f, | |
G | g, | |||
H | h | |||
) | [related] |