mrdocs::operator==

Equality operator

Synopsis

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>);

This function is a hidden friend of Expected<T&, E>, declared only inside that class: it can be found only through argument-dependent lookup.

Exception specification

This function is potentially-throwing unless noexcept(bool(*x == *y)) && noexcept(bool(x.error() == y.error())).

Return Value

true if the objects are equal, false otherwise

Parameters

Name

Description

x

The left operand

y

The right operand

Created with MrDocs