[#bsl-compose2] = xref:bsl.adoc[bsl]::compose2 :relfileprefix: ../ :mrdocs: Create a `binary_compose` adaptor from one binary and two unary functors. == Synopsis Declared in `<bslstp_exfunctional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class OPERATION1, class OPERATION2, class OPERATION3> xref:bsl/binary_compose.adoc[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 [cols="1,4"] |=== | 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#