#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
.
http://www.stlport.org/
).
|
Creates a new composition function.
The new function
|
|
Returns the result of this composition function when applied to the given argument.
|
|
The first function to use in the composition.
|
|
The second function to use in the composition.
|