May 2003
Intermediate to advanced
808 pages
32h 24m
English
The <limits> header declares the numeric_limits class template and related
types and specializations that define the limits and characteristics of
the fundamental arithmetic types (such as the largest possible int). It is the C++ equivalent of the C
headers <cfloat> and <climits> (and the wchar_t limits in <cwchar>).
The <limits> header has a
number of advantages over the <cfloat> and <climits> declarations. In particular,
by using a template, you can write your own template-based classes that
depend on the characteristics of a template parameter; this is not
possible with the macro-based C headers.