numeric_limits::is_bounded
형식을 나타낼 수 있는 값 집합이 유한 인지 테스트 합니다.
static const bool is_bounded = false;
반환 값
true 이면 경우 형식 제한 된 집합을 나타낼 수 있는 값입니다. false 이면 하지 않으면.
설명
미리 정의 된 모든 형식을 나타낼 수 있는 값 집합이 경계 및 반환 true.
예제
// numeric_limits_is_bounded.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "Whether float objects have bounded set "
<< "of representable values: "
<< numeric_limits<float>::is_bounded
<< endl;
cout << "Whether double objects have bounded set "
<< "of representable values: "
<< numeric_limits<double>::is_bounded
<< endl;
cout << "Whether long int objects have bounded set "
<< "of representable values: "
<< numeric_limits<long int>::is_bounded
<< endl;
cout << "Whether unsigned char objects have bounded set "
<< "of representable values: "
<< numeric_limits<unsigned char>::is_bounded
<< endl;
}
요구 사항
헤더: <limits>
네임 스페이스: std