WhisperCom/doc/mkdocs/docs/api/basic_json/operator_ge.md
Dominik Meyer cc002ebfbb Squashed 'libs/json/' content from commit f42a74b8
git-subtree-dir: libs/json
git-subtree-split: f42a74b8f53cc308647123d49d33d1c8122e3f42
2021-08-22 01:28:31 +02:00

1.1 KiB

basic_json::operator>=

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 greater than or equal to another JSON value rhs by calculating #!cpp !(lhs < rhs).

Template parameters

ScalarType
a scalar type according to std::is_scalar<ScalarType>::value

Parameters

lhs (in)
first value to consider
rhs (in)
second value to consider

Return value

whether lhs is less than or equal to rhs

Exception safety

No-throw guarantee: this function never throws exceptions.

Complexity

Linear.

Example

??? example

The example demonstrates comparing several JSON types.
    
```cpp
--8<-- "examples/operator__greaterequal.cpp"
```

Output:

```json
--8<-- "examples/operator__greaterequal.output"
```

Version history

  • Added in version 1.0.0.