mrdocs::operator<
Less‐than operators
Synopses
Declared in <mrdocs/ADT/Optional.hpp>
Checks if the left Optional is less than the right Optional. Returns true if the right is engaged and either the left is disengaged or its value is less.
template<
typename T,
typename U>
constexpr
/* implementation-defined */
operator<(
Optional<T> const& lhs,
Optional<U> const& rhs);
Checks if the Optional is less than a value. Returns true if the Optional is disengaged or its value is less than rhs.
template<
typename T,
typename U>
requires (!detail::isOptionalV<U>)
[[nodiscard]]
constexpr
/* implementation-defined */
operator<(
Optional<T> const& lhs,
U const& rhs);
Checks if a value is less than an engaged Optional. Returns true if the Optional is engaged and lhs is less than its value.
template<
typename T,
typename U>
requires (!detail::isOptionalV<T>)
[[nodiscard]]
constexpr
/* implementation-defined */
operator<(
T const& lhs,
Optional<U> const& rhs);
Return Value
-
trueiflhsis less thanrhsaccording to the described rules; otherwise,false. -
trueif the optional is disengaged or less thanrhs; otherwise,false. -
trueif the optional is engaged andlhsis less than its value; otherwise,false.
Created with MrDocs