mrdocs::operator==

Compares an engaged Optional to a value for equality. Returns true if the Optional is engaged and its value equals rhs.

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

template<
    typename T,
    typename U>
requires (!detail::isOptionalV<U>)
constexpr
/* implementation-defined */
operator==(
    Optional<T> const& lhs,
    U const& rhs);

Return Value

true if the optional is engaged and equal to rhs; otherwise, false.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand