bsl::compose2

Create a binary_compose adaptor from one binary and two unary functors.

Synopsis

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);

Description

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)).

Return Value

binary_compose adaptor equivalent to fn1(fn2(x), fn3(x))

Parameters

NameDescription
fn1binary functor applied to the results of fn2 and fn3
fn2unary functor applied to the left-hand argument
fn3unary functor applied to the right-hand argument