forked from Research/WhisperCom
Dominik Meyer
cc002ebfbb
git-subtree-dir: libs/json git-subtree-split: f42a74b8f53cc308647123d49d33d1c8122e3f42
997 B
997 B
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 two JSON values for inequality 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 the values lhs
and rhs
are not equal
Exception safety
No-throw guarantee: this function never throws exceptions.
Complexity
Linear.
Example
The example demonstrates comparing several JSON types.
--8<-- "examples/operator__notequal.cpp"
Output:
--8<-- "examples/operator__notequal.output"
Version history
- Added in version 1.0.0.