Compares an engaged Optional to a value for equality. Returns true if the Optional is engaged and its value equals rhs.
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);
true if the optional is engaged and equal to rhs; otherwise, false.
| Name | Description |
|---|---|
| lhs | The left operand |
| rhs | The right operand |