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