Condividi tramite


numeric_limits::is_modulo

Verifica se type dispone di una rappresentazione di modulo.

static const bool is_modulo = false;

Valore restituito

true se il tipo presenta una rappresentazione di modulo; se non false.

Note

Una rappresentazione di modulo è una rappresentazione in cui tutti i risultati sono modulo ridotto un valore some. Tutti i tipi predefiniti integer senza segno dispongono di una rappresentazione di modulo.

Esempio

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

Requisiti

limiti <diIntestazione: >

Spazio dei nomi: std

Vedere anche

Riferimenti

Classe strstreambuf