numeric_limits::is_signed

형식에는 서명 된 표현이 있는 경우 테스트 합니다.

static const bool is_signed = false;

반환 값

true 이면 형식 경우 서명 된 표현입니다. false 이면 하지 않으면.

설명

멤버의 모든 미리 정의 된 부동 소수점 및 서명 된 정수 형식의 경우에 서명 된 표현이 있는 형식에 대해 true를 저장 합니다.

예제

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

using namespace std;

int main( )
{
   cout << "Whether float objects have a signed representation: "
        << numeric_limits<float>::is_signed
        << endl;
   cout << "Whether double objects have a signed representation: "
        << numeric_limits<double>::is_signed
        << endl;
   cout << "Whether signed char objects have a signed representation: "
        << numeric_limits<signed char>::is_signed
        << endl;
   cout << "Whether unsigned char objects have a signed representation: "
        << numeric_limits<unsigned char>::is_signed
        << endl;
}
  

요구 사항

헤더: <limits>

네임 스페이스: std

참고 항목

참조

strstreambuf Class