member function template
std::optional<T&>::and_then
- Header
<optional>also in<algorithm>,<exception>,<execution>,<flat_map>,<functional>and 8 more- Draft
- [optional.syn]
- Scope
std::optional<T&>- cppreference
- <optional> nearest page
Synopsis
template<class F>
constexpr auto and_then(F&& f) const;