[#beman-optional-optional-06-and_then] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-06.adoc[optional<T&>]::and_then :relfileprefix: ../../../ :mrdocs: Applies a function to the stored value if there is one. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto and_then(F&& f) const; ---- == Return Value auto == Template Parameters [cols=2] |=== | Name | Description | *F* | |=== == Parameters [cols=2] |=== | Name | Description | *f* | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#