std::numeric_limits< _Tp > Struct Template Reference

Properties of fundamental types. More...

Inheritance diagram for std::numeric_limits< _Tp >:

std::__numeric_limits_base List of all members.

Static Public Member Functions

static _Tp min () throw ()
static _Tp max () throw ()
static _Tp epsilon () throw ()
static _Tp round_error () throw ()
static _Tp infinity () throw ()
static _Tp quiet_NaN () throw ()
static _Tp signaling_NaN () throw ()
static _Tp denorm_min () throw ()

Detailed Description

template<typename _Tp>
struct std::numeric_limits< _Tp >

Properties of fundamental types.

This class allows a program to obtain information about the representation of a fundamental type on a given platform. For non-fundamental types, the functions will return 0 and the data members will all be false.

Definition at line 285 of file limits.


Member Function Documentation

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::denorm_min (  )  throw () [inline, static]

The minimum positive denormalized value. For types where has_denorm is false, this is the minimum positive normalized value.

Definition at line 307 of file limits.

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::epsilon (  )  throw () [inline, static]

The machine epsilon: the difference between 1 and the least value greater than 1 that is representable.

Definition at line 294 of file limits.

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::infinity (  )  throw () [inline, static]

The representation of positive infinity, if has_infinity.

Definition at line 298 of file limits.

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::max (  )  throw () [inline, static]

The maximum finite value.

Definition at line 291 of file limits.

Referenced by std::tr1::hash< long double >::operator()().

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::min (  )  throw () [inline, static]

The minimum finite value, or for floating types with denormalization, the minimum positive normalized value.

Definition at line 289 of file limits.

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::quiet_NaN (  )  throw () [inline, static]

The representation of a quiet "Not a Number," if has_quiet_NaN.

Definition at line 300 of file limits.

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::round_error (  )  throw () [inline, static]

The maximum rounding error measurement (see LIA-1).

Definition at line 296 of file limits.

template<typename _Tp>
static _Tp std::numeric_limits< _Tp >::signaling_NaN (  )  throw () [inline, static]

The representation of a signaling "Not a Number," if has_signaling_NaN.

Definition at line 303 of file limits.


The documentation for this struct was generated from the following file:
Generated on Tue Feb 2 16:59:28 2010 for GNU C++ STL by  doxygen 1.4.7