std::isunordered

From cppreference.com
< cpp‎ | numeric‎ | math
 
 
 
Common mathematical functions
Functions
Basic operations
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Exponential functions
(C++11)
(C++11)
(C++11)
(C++11)
Power functions
(C++11)
(C++11)
Trigonometric and hyperbolic functions
(C++11)
(C++11)
(C++11)
Error and gamma functions
(C++11)
(C++11)
(C++11)
(C++11)
Nearest integer floating point operations
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Floating point manipulation functions
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
Classification/Comparison
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
isunordered
(C++11)
Macro constants
(C++11)(C++11)(C++11)(C++11)(C++11)
 
Defined in header <cmath>
bool isunordered( float x, float y );
(1) (since C++11)
(constexpr since C++23)
bool isunordered( double x, double y );
(2) (since C++11)
(constexpr since C++23)
bool isunordered( long double x, long double y );
(3) (since C++11)
(constexpr since C++23)
bool isunordered( Arithmetic x, Arithmetic y );
(4) (since C++11)
(constexpr since C++23)
1-3) Determines if the floating point numbers x and y are unordered, that is, one or both are NaN and thus cannot be meaningfully compared with each other.
4) A set of overloads or a function template for all combinations of arguments of arithmetic type not covered by (1-3). If any argument has integral type, it is cast to double.

Parameters

x - floating point value
y - floating point value

Return value

true if either x or y is NaN, false otherwise

See also

categorizes the given floating-point value
(function)
(C++11)
checks if the given number is NaN
(function)