member function template · 4 overloads
std::expected::and_then
- Header
<expected>- Scope
std::expected- cppreference
- std::expected nearest page
Overloads
- (1)
template<class F> requires is_constructible_v<E, forward-like-t<expected&, E>> constexpr auto and_then(F&& f) &; - (2)
template<class F> requires is_constructible_v<E, forward-like-t<const expected&, E>> constexpr auto and_then(F&& f) const &; - (3)
template<class F> requires is_constructible_v<E, forward-like-t<expected, E>> constexpr auto and_then(F&& f) &&; - (4)
template<class F> requires is_constructible_v<E, forward-like-t<const expected, E>> constexpr auto and_then(F&& f) const &&;