Three-way comparison operator<=> (starship operator) in C++ on floating-point types

53 Views Asked by At

How does the starship operator (operator <=>) in C++ handle NANs when being used on values of type double and float? Is it UB, unspecified behaviour, or does it do something sensible, e.g., compare two NANs as equal etc...?

0

There are 0 best solutions below