[#beman-optional-optional-03-transform-08] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::transform :relfileprefix: ../../../ :mrdocs: Returns an optional containing the result of applying `f` to the stored value, or a default value if there is no stored value. == Synopses Declared in `<beman/optional/optional.hpp>` Returns an optional containing the result of applying `f` to the stored value, or a default value if there is no stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/transform-070.adoc[transform](F&& f) const &&; ---- [.small]#xref:beman/optional/optional-03/transform-070.adoc[_» more..._]# Returns an optional containing the result of applying `f` to the stored value, or a default value if there is no stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/transform-01.adoc[transform](F&& f) const &; ---- [.small]#xref:beman/optional/optional-03/transform-01.adoc[_» more..._]# Returns an optional containing the result of applying `f` to the stored value, or a default value if there is no stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/transform-0d.adoc[transform](F&& f) &&; ---- [.small]#xref:beman/optional/optional-03/transform-0d.adoc[_» more..._]# Returns an optional containing the result of applying `f` to the stored value, or a default value if there is no stored value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto xref:beman/optional/optional-03/transform-07a.adoc[transform](F&& f) &; ---- [.small]#xref:beman/optional/optional-03/transform-07a.adoc[_» more..._]# == Return Value * auto * optional == Template Parameters [cols=2] |=== | Name | Description | *F* | |=== == Parameters [cols=2] |=== | Name | Description | *f* | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#