mrdocs::operator<

Checks if the Optional is less than a value. Returns true if the Optional is disengaged or its value is less than rhs.

Synopsis

Declared in <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);

Return Value

true if the optional is disengaged or less than rhs; otherwise, false.

Parameters

Name Description
lhs The left operand
rhs The right operand

Created with MrDocs