std::isunordered - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::isunordered

From cppreference.com
< cpp‎ | numeric‎ | math

Defined in header `<cmath>` |  |
bool isunordered( float x, float y ); |  | (since C++11)
bool isunordered( double x, double y ); |  | (since C++11)
bool isunordered( long double x, long double y ); |  | (since C++11)

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.

### [edit] Parameters

x | - | floating point value
y | - | floating point value

### [edit] Return value

true if either `x` or `y` is NaN, false otherwise

### [edit] See also

fpclassify (C++11) | categorizes the given floating point value (function) [edit]
isnan (C++11) | checks if the given number is NaN (function) [edit]
C documentation for isunordered

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/math/isunordered&oldid=70477"