#include <stlutils.h>
Public Member Functions | |
| unary_compose (const Operation1 &x, const Operation2 &y) | |
| Creates a new composition function. | |
| Operation1::result_type | operator() (const typename Operation2::argument_type &x) const |
| Returns the result of this composition function when applied to the given argument. | |
Protected Attributes | |
| Operation1 | func1 |
| The first function to use in the composition. | |
| Operation2 | func2 |
| The second function to use in the composition. | |
This class is for use with the Standard Template Library.
The composition of functions func1 and func2 is the function comp for which comp(x) == func1(func2(x)).
Type Operation1::argument_type is the same as (or can be constructed from) type Operation2::result_type.
| regina::stl::unary_compose< Operation1, Operation2 >::unary_compose | ( | const Operation1 & | x, | |
| const Operation2 & | y | |||
| ) | [inline] |
Creates a new composition function.
The new function comp will satisfy comp(arg) == x(y(arg)).
| x | the first function to use in the composition. | |
| y | the second function to use in the composition. |
| Operation1::result_type regina::stl::unary_compose< Operation1, Operation2 >::operator() | ( | const typename Operation2::argument_type & | x | ) | const [inline] |
Returns the result of this composition function when applied to the given argument.
| x | the argument to pass to this composition function. |
Operation1 regina::stl::unary_compose< Operation1, Operation2 >::func1 [protected] |
The first function to use in the composition.
Operation2 regina::stl::unary_compose< Operation1, Operation2 >::func2 [protected] |
The second function to use in the composition.