Standard C++ Library Class Reference

numeric_limits<unsigned char>
numeric_limits<signed char>
numeric_limits<bool>
Synopsis
#include <limits>
template <class T>
class numeric_limits ;
Description
numeric_limits is a class for representing information about scalar types. Specializations are
provided for each fundamental type, both floating point and integer, including bool.
This class encapsulates information that is contained in the <climits> and <cfloat> headers, as
well as providing additional information that is not contained in any existing C or C++ header.
Not all of the information provided by members is meaningful for all specializations of
numeric_limits. Any value which is not meaningful for a particular type is set to 0 or false.
Interface
template <class T>
class numeric_limits {
public:
// General -- meaningful for all specializations.
static const bool is_specialized ;
static T min ();
static T max ();
static const int radix ;
static const int digits ;
static const int digits10 ;
static const bool is_signed ;
static const bool is_integer ;
static const bool is_exact ;
static const bool traps ;
static const bool is_modulo ;
static const bool is_bounded ;
// Floating point specific.
static T epsilon ();
static T round_error ();
static const int min_exponent10 ;