[#bsl-compose1]
= xref:bsl.adoc[bsl]::compose1
:relfileprefix: ../
:mrdocs:

Return an `unary&lowbar;compose` function object constructed using the specified `fn1` and `fn2` unary functions&period; The returned function object is equivalent to `fn1(fn2(x))`&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;exfunctional&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class OPERATION1,
    class OPERATION2&gt;
xref:bsl/unary_compose.adoc[unary&lowbar;compose&lt;OPERATION1, OPERATION2&gt;]
compose1(
    OPERATION1 const& fn1,
    OPERATION2 const& fn2);
----

== Return Value

`unary&lowbar;compose` adaptor equivalent to `fn1(fn2(x))`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fn1*
| outer unary functor applied to the result of `fn2`
| *fn2*
| inner unary functor applied to the argument
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
