Create a binary_compose adaptor from one binary and two unary functors.
Declared in <bslstp_exfunctional.h>
template<
class OPERATION1,
class OPERATION2,
class OPERATION3>
binary_compose<OPERATION1, OPERATION2, OPERATION3>
compose2(
OPERATION1 const& fn1,
OPERATION2 const& fn2,
OPERATION3 const& fn3);
Return a binary_compose function object constructed using the specified fn1 binary function, and the specified fn2 and fn3 unary functions. The returned function object is equivalent to fn1(fn2(x), fn3(x)).
binary_compose adaptor equivalent to fn1(fn2(x), fn3(x))
| Name | Description |
|---|---|
| fn1 | binary functor applied to the results of fn2 and fn3 |
| fn2 | unary functor applied to the left-hand argument |
| fn3 | unary functor applied to the right-hand argument |