1 <?xml version=
"1.0" encoding=
"UTF-8" standalone=
"no"?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml"><head><meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" /><title>Numeric Properties
</title><meta name=
"generator" content=
"DocBook XSL Stylesheets V1.74.0" /><meta name=
"keywords" content=
" ISO C++ , library " /><link rel=
"home" href=
"../spine.html" title=
"The GNU C++ Library Documentation" /><link rel=
"up" href=
"fundamental_types.html" title=
"Chapter 4. Types" /><link rel=
"prev" href=
"fundamental_types.html" title=
"Chapter 4. Types" /><link rel=
"next" href=
"bk01pt02ch04s03.html" title=
"NULL" /></head><body><div class=
"navheader"><table width=
"100%" summary=
"Navigation header"><tr><th colspan=
"3" align=
"center">Numeric Properties
</th></tr><tr><td width=
"20%" align=
"left"><a accesskey=
"p" href=
"fundamental_types.html">Prev
</a> </td><th width=
"60%" align=
"center">Chapter
4. Types
</th><td width=
"20%" align=
"right"> <a accesskey=
"n" href=
"bk01pt02ch04s03.html">Next
</a></td></tr></table><hr /></div><div class=
"sect1" lang=
"en" xml:
lang=
"en"><div class=
"titlepage"><div><div><h2 class=
"title" style=
"clear: both"><a id=
"manual.support.types.numeric_limits"></a>Numeric Properties
</h2></div></div></div><p>
4 The header
<code class=
"filename">limits
</code> defines
5 traits classes to give access to various implementation
6 defined-aspects of the fundamental types. The traits classes --
7 fourteen in total -- are all specializations of the template class
8 <code class=
"classname">numeric_limits
</code>, documented
<a class=
"ulink" href=
"http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/structstd_1_1numeric__limits.html" target=
"_top">here
</a>
9 and defined as follows:
10 </p><pre class=
"programlisting">
11 template
<typename T
>
14 static const bool is_specialized;
15 static T max() throw();
16 static T min() throw();
18 static const int digits;
19 static const int digits10;
20 static const bool is_signed;
21 static const bool is_integer;
22 static const bool is_exact;
23 static const int radix;
24 static T epsilon() throw();
25 static T round_error() throw();
27 static const int min_exponent;
28 static const int min_exponent10;
29 static const int max_exponent;
30 static const int max_exponent10;
32 static const bool has_infinity;
33 static const bool has_quiet_NaN;
34 static const bool has_signaling_NaN;
35 static const float_denorm_style has_denorm;
36 static const bool has_denorm_loss;
37 static T infinity() throw();
38 static T quiet_NaN() throw();
39 static T denorm_min() throw();
41 static const bool is_iec559;
42 static const bool is_bounded;
43 static const bool is_modulo;
45 static const bool traps;
46 static const bool tinyness_before;
47 static const float_round_style round_style;
49 </pre></div><div class=
"navfooter"><hr /><table width=
"100%" summary=
"Navigation footer"><tr><td width=
"40%" align=
"left"><a accesskey=
"p" href=
"fundamental_types.html">Prev
</a> </td><td width=
"20%" align=
"center"><a accesskey=
"u" href=
"fundamental_types.html">Up
</a></td><td width=
"40%" align=
"right"> <a accesskey=
"n" href=
"bk01pt02ch04s03.html">Next
</a></td></tr><tr><td width=
"40%" align=
"left" valign=
"top">Chapter
4. Types
</td><td width=
"20%" align=
"center"><a accesskey=
"h" href=
"../spine.html">Home
</a></td><td width=
"40%" align=
"right" valign=
"top"> NULL
</td></tr></table></div></body></html>