This class provides a function object adaptor for two other functors. When given two adaptable unary functions f and g, and when gs return type is convertible to fs argument type, this class can be used to create a function object h that is equivalent to f(g(x)).
Declared in <bslstp_exfunctional.h>
template<
class OPERATION1,
class OPERATION2>
class unary_compose;
| Name | Description |
|---|---|
argument_type | This typedef is an alias to OPERATION2::argument_type. |
result_type | This typedef is an alias to OPERATION1::result_type. |
| Name | Description |
|---|---|
unary_compose [constructor] | Create a unary_compose object from the specified x and y functors. |
operator() | Function call operators |
| Name | Description |
|---|---|
d_fn1 | First functor f in the composition f(g(x)). |
d_fn2 | Second functor g in the composition f(g(x)). |
| Name | Description |
|---|---|
compose1 | Return an unary_compose function object constructed using the specified fn1 and fn2 unary functions. The returned function object is equivalent to fn1(fn2(x)). |