libycxx

member function template · 4 overloads

std::expected<T, E>::and_then

Scope
std::expected<T, E>
cppreference
<expected> nearest page

Overloads

  1. template<class F>
      requires is_constructible_v<E, forward-like-t<expected&, E>>
    constexpr auto and_then(F&& f) &;
    (1)
  2. template<class F>
      requires is_constructible_v<E, forward-like-t<const expected&, E>>
    constexpr auto and_then(F&& f) const &;
    (2)
  3. template<class F>
      requires is_constructible_v<E, forward-like-t<expected, E>>
    constexpr auto and_then(F&& f) &&;
    (3)
  4. template<class F>
      requires is_constructible_v<E, forward-like-t<const expected, E>>
    constexpr auto and_then(F&& f) const &&;
    (4)