]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/doc/mkdocs/docs/api/basic_json/operator_le.md
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / nlohmann-json / doc / mkdocs / docs / api / basic_json / operator_le.md
1 # <small>nlohmann::basic_json::</small>operator<=
2
3 ```cpp
4 bool operator<=(const_reference lhs, const_reference rhs) noexcept,
5
6 template<typename ScalarType>
7 bool operator<=(const_reference lhs, const ScalarType rhs) noexcept;
8
9 template<typename ScalarType>
10 bool operator<=(ScalarType lhs, const const_reference rhs) noexcept;
11 ```
12
13 Compares whether one JSON value `lhs` is less than or equal to another JSON value `rhs` by calculating
14 `#cpp !(rhs < lhs)`.
15
16 ## Template parameters
17
18 `ScalarType`
19 : a scalar type according to `std::is_scalar<ScalarType>::value`
20
21 ## Parameters
22
23 `lhs` (in)
24 : first value to consider
25
26 `rhs` (in)
27 : second value to consider
28
29 ## Return value
30
31 whether `lhs` is less than or equal to `rhs`
32
33 ## Exception safety
34
35 No-throw guarantee: this function never throws exceptions.
36
37 ## Complexity
38
39 Linear.
40
41 ## Examples
42
43 ??? example
44
45 The example demonstrates comparing several JSON types.
46
47 ```cpp
48 --8<-- "examples/operator__lessequal.cpp"
49 ```
50
51 Output:
52
53 ```json
54 --8<-- "examples/operator__lessequal.output"
55 ```
56
57 ## Version history
58
59 - Added in version 1.0.0.