Compare commits

...

1 Commits

Author SHA1 Message Date
Douglas Gregor 0b7242ddc3 Merged from 1.33.0 release
[SVN r30540]
2005-08-12 13:02:37 +00:00
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -24,8 +24,8 @@
<LI><A HREF="#introduction">Introduction</A></LI>
<LI><A HREF="#bounds"><code>template class bounds&ltN&gt</CODE></A></LI>
<LI><A HREF="#examples">Examples</A></LI>
<LI><A HREF="#implementation">Implementation</A></LI>
<LI><A HREF="#portability">Portability</A></LI>
<!--<LI><A HREF="#implementation">Implementation</A></LI>-->
<!--<LI><A HREF="#portability">Portability</A></LI>-->
</UL> <HR>
<H2><A NAME="introduction">Introduction</A></H2>
<P>To determine the ranges of numeric types with std:: numeric_limits
+4 -4
View File
@@ -22,7 +22,7 @@ HREF="../../../../boost/numeric/conversion/converter.hpp">boost/numeric/conversi
</TABLE>
<HR>
<H2>Contents</H2>
<DT><A HREF="#synposis">Synopsis</A></DT>
<DT><A HREF="#synopsis">Synopsis</A></DT>
<DT><A HREF="requirements.html">User Defined Types support</A></DT>
<DT><A HREF="#rchklogic">Range Checking Logic</A></DT>
<DT><A HREF="#examples">Examples</A></DT>
@@ -114,7 +114,7 @@ encapsulating the code to perform a numeric conversion with the direction and pr
exposed by the converter.</TD>
</TR>
<TR>
<TD>&nbsp;<A HREF="converter_policies.html#rangecheck"><CODE>UserRangeChecker</CODE></A>&nbsp;</TD>
<TD>&nbsp;<A HREF="converter_policies.html#rc"><CODE>UserRangeChecker</CODE></A>&nbsp;</TD>
<TD><i>Special and Optional</i> <b>Stateless Policy</b> which can be used to override
the internal range checking logic.<br>
If given, supplies alternative code for the out_of_range() and validate_range()
@@ -164,7 +164,7 @@ argument_type s ) ;</CODE></P>
(i.e: int-&gt;float), requires no range checking, so out_of_range() returns
cInRange directly. See the following <A HREF="#rchklogic">table</A> for more
details.<br>
If the user supplied a <a href="converter_policies.html#rangecheck">UserRangeChecker</a>
If the user supplied a <a href="converter_policies.html#rc">UserRangeChecker</a>
policy, is this policy which implements this function, so the implementation
is user defined, although it is expected to perform the same conceptual check
and return the appropriate result.</P>
@@ -178,7 +178,7 @@ HREF="converter_policies.html#oh"><CODE>OverflowHandler</CODE></A> policy class
<BR>
For those Target/Source combinations which don't require range checking, this
is an <U>empty inline function</U>.<br>
If the user supplied a <a href="converter_policies.html#rangecheck">UserRangeChecker</a>
If the user supplied a <a href="converter_policies.html#rc">UserRangeChecker</a>
policy, is this policy which implements this function, so the implementation
is user defined, although it is expected to perform the same action as the
default. In particular, it is expected to pass the result of the check to
+1 -1
View File
@@ -102,7 +102,7 @@ Daryle Walker, Jhon Torjo, Eric Ford, Gennadiy Rozental.
</li>
<li>Papers:
<ol>
<li>David Goldberg <A href="http://citeseer.nj.nec.com/goldberg91what.html">
<li>David Goldberg <A href="http://citeseer.ist.psu.edu/goldberg91what.html">
What Every Computer Scientist Should Know About Floating-Point Arithmetic</A></li>
<li><A href="http://www.cs.berkeley.edu/~wkahan/">Prof. William Kahan</A> papers on floating-point.</li>
</ol>
+3 -3
View File
@@ -60,9 +60,9 @@ numeric_cast ( Source arg )
</PRE> </BLOCKQUOTE>
<P>numeric_cast returns the result of converting a value of type Source to a value of type
Target. If out-of-range is detected, an exception is thrown (see
<A HREF="#bad_numeric_cast">bad_numeric_cast</A>, <A
HREF="#positive_overflow">positive_overflow</A> and
<A HREF="#negative_overflow">negative_overflow</A>). <BR> <BR> </P> <HR>
<A HREF="converter_policies.html#bad_numc">bad_numeric_cast</A>, <A
HREF="converter_policies.html#posovr">positive_overflow</A> and
<A HREF="converter_policies.html#negovr">negative_overflow</A>). <BR> <BR> </P> <HR>
<H2><A NAME="examples">Examples</A></H2>
<P>The following example performs some typical conversions between numeric
types: </P>