numeric_limits::is_specialized

명시적 특수화는 템플릿 클래스에 정의 된 형식이 있는 경우 테스트 numeric_limits.

static const bool is_specialized = false;

반환 값

true 이면 형식을 명시적 특수화는 템플릿 클래스에 정의 된 경우 false 이면 하지 않으면.

설명

포인터 이외의 모든 스칼라 형식 템플릿 클래스에 정의 된 명시적 특수화 된 numeric_limits.

예제

// numeric_limits_is_specialized.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>

using namespace std;

int main( )
{
   cout << "Whether float objects have an explicit "
        << "specialization in the class: "
        << numeric_limits<float>::is_specialized
        << endl;
   cout << "Whether float* objects have an explicit "
        << "specialization in the class: "
        << numeric_limits<float*>::is_specialized
        << endl;
   cout << "Whether int objects have an explicit "
        << "specialization in the class: "
        << numeric_limits<int>::is_specialized
        << endl;
   cout << "Whether int* objects have an explicit "
        << "specialization in the class: "
        << numeric_limits<int*>::is_specialized
        << endl;
}
  

요구 사항

헤더: <limits>

네임 스페이스: std

참고 항목

참조

strstreambuf Class