#include <utilmm/functional/unary_compose.hh>
Public Member Functions | |
| unary_compose (UnaryFun1 const &one, UnaryFun2 const &two) | |
| Constructor. | |
| UnaryFun1::result_type | operator() (arg_param x) const |
| Call operator. | |
Related Functions | |
| (Note that these are not member functions.) | |
| template<class Fun1, class Fun2> | |
| unary_compose< Fun1, Fun2 > | compose1 (Fun1 const &f, Fun2 const &g) |
| Composition function. | |
This class helps programmers to compose two std::unary_function in one
| UnaryFun1 | The first unary function | |
| UnaryFun2 | The second unary function |
UnaryFun1(UnaryFun2(x))
result_type of UnaryFun2 must be default convertible to the argument_type of UnaryFun1 | utilmm::unary_compose< UnaryFun1, UnaryFun2 >::unary_compose | ( | UnaryFun1 const & | one, | |
| UnaryFun2 const & | two | |||
| ) | [inline] |
Constructor.
Create a new instance having the two functors instances to compose.
| one | The first functor | |
| two | The second functor |
| UnaryFun1::result_type utilmm::unary_compose< UnaryFun1, UnaryFun2 >::operator() | ( | arg_param | x | ) | const [inline] |
Call operator.
Compute the result of the composition for a given argument
| x | The argument |
| unary_compose< Fun1, Fun2 > compose1 | ( | Fun1 const & | f, | |
| Fun2 const & | g | |||
| ) | [related] |
Composition function.
This function create a new unary_compose instance based on two given function. It only ease the declaration of unary_compose instances.
| f | The first function | |
| g | The second function |
f(g(x))
1.5.3