numeric_limits::traps

Verifica se l'applicazione bloccata che i rapporti sulle eccezioni aritmetiche viene implementato per un tipo.

static const bool traps = false;

Valore restituito

true se l'applicazione intercettare viene implementato per il tipo, false caso contrario.

Esempio

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

using namespace std;

int main( )
{
   cout << "Whether float types have implemented trapping: "
        << numeric_limits<float>::traps
        << endl;
   cout << "Whether double types have implemented trapping: "
        << numeric_limits<double>::traps
        << endl;
   cout << "Whether long int types have implemented trapping: "
        << numeric_limits<long int>::traps
        << endl;
   cout << "Whether unsigned char types have implemented trapping: "
        << numeric_limits<unsigned char>::traps
        << endl;
}
  

Requisiti

intestazione: <limits>

Spazio dei nomi: deviazione standard

Vedere anche

Riferimenti

strstreambuf Class