[#beman-optional-optional-06-or_else]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-06.adoc[optional&lt;T&&gt;]::or&lowbar;else
:relfileprefix: ../../../
:mrdocs:

Calls a function if the optional is empty&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
xref:beman/optional/optional-06.adoc[optional&lt;T&&gt;]
or&lowbar;else(F&& f) const;
----

== Return Value

* optional
* optional&lt;T&amp;&gt;

== Template Parameters

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

== Parameters

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


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