[#beman-optional-optional-03-transform-0d]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::transform
:relfileprefix: ../../../
:mrdocs:

Returns an optional containing the result of applying `f` to the contained value, or an empty optional if there is no contained value&period;

== Synopsis

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class F&gt;
constexpr
auto
transform(F&& f) &amp;&amp;;
----

== Return Value

auto

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f*
| An invocable to apply to the contained value&period;
|===


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