tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches

◆ is_ieee_equal()

template<typename T , typename U >
bool tts::is_ieee_equal ( T const &  a,
U const &  b 
)
inline

Compute if values are exactly equals or all NaNs/Invalids.

This function can be overloaded in the tts namespace to compute the strict equality for external types.

Parameters
aValue to compare
bValue to compare
Returns
Is a == b or detail::isnan(a) && detail::isnan(b)