[#beman-optional-optional-03-or_else-05] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::or_else :relfileprefix: ../../../ :mrdocs: Returns an optional containing the stored value if it has one, or the result of applying `f` to the optional if it does not. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr xref:beman/optional/optional-03.adoc[optional<T>] or_else(F&& f) const &; ---- == Return Value * optional * optional<T> [.small]#Created with https://www.mrdocs.com[MrDocs]#