Standard C++ Library Class Reference
Returns the machine epsilon (the difference between 1 and the least value greater than 1
that is representable). This function is meaningful for floating point types only.
static const bool
has_denorm ;
This field is true if the type allows denormalized values (variable number of exponent
bits). It is meaningful for floating point types only.
static const bool
has_infinity ;
This field is true if the type has a representation for positive infinity. It is meaningful for
floating point types only. This field must be true for any type claiming conformance to
IEC 559.
static const bool
has_quiet_NaN ;
This field is true is the type has a representation for a quiet (non-signaling) "Not a
Number". It is meaningful for floating point types only and must be true for any type
claiming conformance to IEC 559.
static const bool
has_signaling_NaN ;
This field is true if the type has a representation for a signaling "Not a Number". It is
meaningful for floating point types only, and must be true for any type claiming
conformance to IEC 559.
static T
infinity ();
Returns the representation of positive infinity, if available. This member function is
meaningful for only those specializations that declare has_infinity to be true. Required
for any type claiming conformance to IEC 559.
static const bool
is_bounded ;
This field is true if the set of values representable by the type is finite. All built-in C types
are bounded; this member would be false for arbitrary precision types.
static const bool
is_exact ;
This static member field is true if the type uses an exact representation. All integer types
are exact, but not vice versa. For example, rational and fixed-exponent representations
are exact but not integer. This member is meaningful for all specializations.
static const bool
is_iec559 ;