[#beman-optional-optional-03-transform-0d] = 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. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> constexpr auto transform(F&& f) &&; ---- == Return Value auto == Template Parameters [cols=2] |=== | Name | Description | *F* | |=== == Parameters [cols=2] |=== | Name | Description | *f* | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#