bool operator<=(const_reference lhs, const_reference rhs) noexcept, template<typename ScalarType> bool operator<=(const_reference lhs, const ScalarType rhs) noexcept; template<typename ScalarType> bool operator<=(ScalarType lhs, const const_reference rhs) noexcept;
Compares whether one JSON value lhs
is less than or equal to another JSON value rhs
by calculating #cpp !(rhs < lhs)
.
ScalarType
: a scalar type according to std::is_scalar<ScalarType>::value
lhs
(in) : first value to consider
rhs
(in) : second value to consider
whether lhs
is less than or equal to rhs
No-throw guarantee: this function never throws exceptions.
Linear.
??? example
The example demonstrates comparing several JSON types. ```cpp --8<-- "examples/operator__lessequal.cpp" ``` Output: ```json --8<-- "examples/operator__lessequal.output" ```