Compares a value against an engaged optional's value for equality.
Declared in <beman/optional/optional.hpp>
template<
typename T,
typename U>
constexpr
bool
operator==(
T const& lhs,
optional<U> const& rhs)
requires (!detail::is_optional<T>) && detail::optional_eq_rel<T, U>;
true if rhs is engaged and lhs equals its contained value.
| Name | Description |
|---|---|
| lhs | The value operand. |
| rhs | The optional operand. |