类型测试是否有信号非数值 (NAN) 的一个表示形式。
static const bool has_signaling_NaN = false;
返回值
true,如果类型 NAN 的一个表示一个信号;false,则不是。
备注
信号 NAN 非数值的编码,发送信号使其在表达式的状态。 返回值为 true is_iec559 为 true。
示例
// numeric_limits_has_signaling_nan.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "Whether float objects have a signaling_NaN: "
<< numeric_limits<float>::has_signaling_NaN
<< endl;
cout << "Whether double objects have a signaling_NaN: "
<< numeric_limits<double>::has_signaling_NaN
<< endl;
cout << "Whether long int objects have a signaling_NaN: "
<< numeric_limits<long int>::has_signaling_NaN
<< endl;
}
要求
页眉: <限制>
命名空间: std