Aracılığıyla paylaş


numeric_limits::has_infinity

Pozitif sonsuzluk için temsili bir türe sahip olup olmadığını sınar.

static const bool has_infinity = false;

Dönüş Değeri

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

Notlar

Üye döndüren doğru , is_iec559 olan doğru.

Örnek

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

using namespace std;

int main( )
{
   cout << "Whether float objects have infinity: "
        << numeric_limits<float>::has_infinity
        << endl;
   cout << "Whether double objects have infinity: "
        << numeric_limits<double>::has_infinity
        << endl;
   cout << "Whether long int objects have infinity: " 
        << numeric_limits<long int>::has_infinity
        << endl;
}
  

Gereksinimler

Başlık: <limits>

Namespace: std

Ayrıca bkz.

Başvuru

strstreambuf Class