[#bsl-optional-072-and_then-080]
= xref:bsl.adoc[bsl]::xref:bsl/optional-072.adoc[optional]::and&lowbar;then
:relfileprefix: ../../
:mrdocs:

Invoke the specified `func` on the contained value and return its optional result as a const lvalue&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;optional&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;FUNC&gt;
constexpr
auto
and&lowbar;then(t&lowbar;FUNC&& func) const &amp;;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
