Checks if a value is less than an engaged Optional. Returns true if the Optional is engaged and lhs is less than its value.
Declared in <mrdocs/ADT/Optional.hpp>
template<
typename T,
typename U>
requires (!detail::isOptionalV<T>)
[[nodiscard]]
constexpr
/* implementation-defined */
operator<(
T const& lhs,
Optional<U> const& rhs);
true if the optional is engaged and lhs is less than its value; otherwise, false.
The return value should not be discarded.
| Name | Description |
|---|---|
| lhs | The left operand |
| rhs | The right operand |