[#beman-optional-optional-03-and_then-02] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::and_then :relfileprefix: ../../../ :mrdocs: Returns an optional containing the result of applying `f` to the stored value. == Synopses Declared in `<beman/optional/optional.hpp>` Returns an optional containing the result of applying `f` to the stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/and_then-03.adoc[and_then](F&& f) &; ---- [.small]#xref:beman/optional/optional-03/and_then-03.adoc[_» more..._]# Returns an optional containing the result of applying `f` to the stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/and_then-0d.adoc[and_then](F&& f) &&; ---- [.small]#xref:beman/optional/optional-03/and_then-0d.adoc[_» more..._]# Returns an optional containing the result of applying `f` to the stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/and_then-0c.adoc[and_then](F&& f) const &; ---- [.small]#xref:beman/optional/optional-03/and_then-0c.adoc[_» more..._]# Returns an optional containing the result of applying `f` to the stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/and_then-08.adoc[and_then](F&& f) const &&; ---- [.small]#xref:beman/optional/optional-03/and_then-08.adoc[_» more..._]# == Return Value auto [.small]#Created with https://www.mrdocs.com[MrDocs]#