4 #ifndef UTILMM_FUNCTIONAL_UNARY_COMPOSE_HEADER 5 # define UTILMM_FUNCTIONAL_UNARY_COMPOSE_HEADER 30 template<
class UnaryFun1,
class UnaryFun2>
32 :
public std::unary_function<typename UnaryFun2::argument_type,
33 typename UnaryFun1::result_type> {
56 :fun_1(one), fun_2(two) {}
68 return fun_1(fun_2(x));
87 template<
class Fun1,
class Fun2>
94 #endif // UTILMM_FUNCTIONAL_BINARY_COMPOSE_HEADER Definition: auto_flag.hh:6
Definition of utilmm::arg_traits class.
unary_compose(UnaryFun1 const &one, UnaryFun2 const &two)
Constructor.
Definition: unary_compose.hh:55
unary_compose< Fun1, Fun2 > compose1(Fun1 const &f, Fun2 const &g)
Composition function.
Definition: unary_compose.hh:88
UnaryFun1::result_type operator()(arg_param x) const
Call operator.
Definition: unary_compose.hh:66
computed_type type
argument type
Definition: arg_traits.hh:38
Unary functors composition.
Definition: unary_compose.hh:31