Aracılığıyla paylaş


numeric_limits::is_signed

Sınamaları imzalı temsili bir türe sahip.

static const bool is_signed = false;

Dönüş Değeri

gerçek imzalı bir gösterimi; türündeyse yanlış değilse.

Notlar

Üye tüm önceden tanımlanan kayan nokta ve imzalı tamsayı türleri için geçerlidir bir imzalı gösterimi yok türü için true depolar.

Örnek

// 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;
}
  

Gereksinimler

Başlık: <limits>

Namespace: std

Ayrıca bkz.

Başvuru

strstreambuf Class