numeric_limits::is_bounded

Comprueba si el conjunto de valores que un tipo puede representar es finito.

static const bool is_bounded = false;

Valor devuelto

TRUE si el tipo tiene un conjunto limitado de valores representables; Falso si no.

Comentarios

Todos los tipos predefinidos tienen un conjunto limitado de valores representables y de TRUEreturn.

Ejemplo

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

Requisitos

encabezado: <límites>

espacio de nombres: std

Vea también

Referencia

strstreambuf Class