mrdocs::polyfill::operator==

Equality operators

Synopses

Declared in <mrdocs/polyfill/expected.hpp>

Equality operator

template<class Er>
[[nodiscard]]
constexpr
bool
operator==(
    unexpected const& x,
    unexpected<Er> const& y);
» more...

Equality operator

template<class E2>
constexpr
bool
operator==(
    expected const& x,
    unexpected<E2> const& e) noexcept(noexcept(bool(x.error() == e.error())));
» more...

Equality operator

template<class U>
constexpr
bool
operator==(
    expected const& x,
    U const& v) noexcept(noexcept(bool(*x == v)));
» more...

Equality operator

template<
    class U,
    class E2>
requires (!std::is_void_v<U>)
constexpr
bool
operator==(
    expected const& x,
    expected<U, E2> const& y) noexcept(/* see-below */);
» more...

Equality operator

template<
    class U,
    class E2>
requires std::is_void_v<U>
constexpr
bool
operator==(
    expected const& x,
    expected<U, E2> const& y) noexcept(noexcept(bool(x.error() == y.error())));
» more...

Equality operator

template<class E2>
constexpr
bool
operator==(
    expected const& x,
    unexpected<E2> const& e) noexcept(noexcept(bool(x.error() == e.error())));
» more...

Equality operator

template<class U>
constexpr
bool
operator==(
    expected const& x,
    U const& v) noexcept(noexcept(bool(*x == v)));
» more...

Equality operator

template<
    class U,
    class E2>
constexpr
bool
operator==(
    expected const& x,
    expected<U, E2> const& y) noexcept(/* see-below */)
requires (!std::is_void_v<U>);
» more...