[#bsl-optional-072-transform-06b] = xref:bsl.adoc[bsl]::xref:bsl/optional-072.adoc[optional]::transform :relfileprefix: ../../ :mrdocs: Apply the specified `func` to the contained value and return the result as an rvalue optional. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_FUNC> constexpr auto transform(t_FUNC&& func) &&; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#