Checks if the Optional is less than or equal to a value. Returns true if the Optional is disengaged or its value is less than or equal to rhs.
Synopsis
Declared in <mrdocs/ADT/Optional.hpp>
template<
typename T,
typename U>
requires (!detail::isOptionalV<U>)
constexpr
/* implementation-defined */
operator<=(
Optional<T> const& lhs,
U const& rhs);
Return Value
true if the optional is disengaged or less than or equal to rhs; otherwise, false.
Parameters
Name |
Description |
lhs |
The left operand |
rhs |
The right operand |
Created with MrDocs