libycxx

member function

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

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

Synopsis

constexpr void swap(
    expected& rhs) noexcept(is_nothrow_move_constructible_v<E> && is_nothrow_swappable_v<E>)  requires is_swappable_v<E> && is_move_constructible_v<E>;