numeric_limits::is_modulo

Comprueba si tipo tiene una representación del módulo.

static const bool is_modulo = false;

Valor devuelto

TRUE si el tipo tiene una representación del módulo; Falso si no.

Comentarios

Una representación del módulo es una representación donde módulo todos los resultados de un valor.Todos los tipos predefinidos de entero sin signo tienen una representación del módulo.

Ejemplo

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

using namespace std;

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

Requisitos

encabezado: <límites>

espacio de nombres: std

Vea también

Referencia

strstreambuf Class