1 # <small>nlohmann::basic_json::</small>operator<=
4 bool operator<=(const_reference lhs, const_reference rhs) noexcept,
6 template<typename ScalarType>
7 bool operator<=(const_reference lhs, const ScalarType rhs) noexcept;
9 template<typename ScalarType>
10 bool operator<=(ScalarType lhs, const const_reference rhs) noexcept;
13 Compares whether one JSON value `lhs` is less than or equal to another JSON value `rhs` by calculating
16 ## Template parameters
19 : a scalar type according to `std::is_scalar<ScalarType>::value`
24 : first value to consider
27 : second value to consider
31 whether `lhs` is less than or equal to `rhs`
35 No-throw guarantee: this function never throws exceptions.
45 The example demonstrates comparing several JSON types.
48 --8<-- "examples/operator__lessequal.cpp"
54 --8<-- "examples/operator__lessequal.output"
59 - Added in version 1.0.0.