Sdílet prostřednictvím


numeric_limits::is_bounded

Zkoušky, pokud je sada hodnot, které představují typ omezené.

static const bool is_bounded = false;

Vrácená hodnota

true Pokud má typ ohraničené skupiny reprezentovat hodnot; false Pokud tomu tak není.

Poznámky

Všechny předdefinované typy ohraničené sada reprezentovat hodnoty a vrátit true.

Příklad

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

Požadavky

Záhlaví:<omezení>

Obor názvů: std

Viz také

Referenční dokumentace

strstreambuf – třída