[#beman-optional-optional-03-and_then-03]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::and&lowbar;then
:relfileprefix: ../../../
:mrdocs:

Returns an optional containing the result of applying `f` to the stored 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
and&lowbar;then(F&& f) &amp;;
----

== Return Value

auto

== Template Parameters

[cols=2]
|===
| Name
| Description
| *F*
| 
|===

== Parameters

[cols=2]
|===
| Name
| Description
| *f*
| 
|===


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