mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-13 00:32:14 +00:00
a) made trap_exception work b) updated manual and examples to show how to use library to eliminate runtime penalty c) added in safe_literal d) made corrections of various types
100 lines
6.1 KiB
HTML
100 lines
6.1 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>Safe Numerics</title>
|
|
<link rel="stylesheet" href="boostbook.css" type="text/css">
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
|
<link rel="home" href="index.html" title="Safe Numerics">
|
|
<link rel="next" href="introduction.html" title="Introduction">
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table cellpadding="2" width="100%"><tr>
|
|
<td valign="top"><img href="index.html" height="164px" src="pre-boost.jpg" alt="Library Documentation Index"></td>
|
|
<td><h2>Safe Numerics</h2></td>
|
|
</tr></table>
|
|
<div class="spirit-nav"><a accesskey="n" href="introduction.html"><img src="images/next.png" alt="Next"></a></div>
|
|
<div class="chapter">
|
|
<div class="titlepage"><div>
|
|
<div><h2 class="title">
|
|
<a name="safe_numerics"></a>Safe Numerics</h2></div>
|
|
<div><div class="author"><h3 class="author">
|
|
<span class="firstname">Robert</span> <span class="surname">Ramey</span>
|
|
</h3></div></div>
|
|
<div><p class="copyright">Copyright © 2012 Robert Ramey</p></div>
|
|
<div><div class="legalnotice">
|
|
<a name="idm473864802688"></a><p><a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">Subject to Boost
|
|
Software License</a></p>
|
|
</div></div>
|
|
</div></div>
|
|
<div class="toc">
|
|
<p><b>Table of Contents</b></p>
|
|
<dl>
|
|
<dt><span class="section"><a href="introduction.html">Introduction</a></span></dt>
|
|
<dd><dl>
|
|
<dt><span class="section"><a href="introduction.html#safe_numerics.introduction.problem">Problem</a></span></dt>
|
|
<dt><span class="section"><a href="introduction.html#safe_numerics.introduction.solution">Solution</a></span></dt>
|
|
<dt><span class="section"><a href="introduction.html#safe_numerics.introduction.summary">Implementation</a></span></dt>
|
|
<dt><span class="section"><a href="introduction.html#idm473864781120">Additional Features</a></span></dt>
|
|
<dt><span class="section"><a href="introduction.html#safe_numerics.introduction.requirements">Requirements</a></span></dt>
|
|
<dt><span class="section"><a href="introduction.html#safe_numerics.introduction.scope">Scope</a></span></dt>
|
|
</dl></dd>
|
|
<dt><span class="section"><a href="tutorial.html">Tutorial and Motivating Examples</a></span></dt>
|
|
<dd><dl>
|
|
<dt><span class="section"><a href="tutorial/1.html">Arithmetic Expressions Can Yield Incorrect Results.</a></span></dt>
|
|
<dt><span class="section"><a href="tutorial/2.html">Arithmetic Operations can Overflow Silently</a></span></dt>
|
|
<dt><span class="section"><a href="tutorial/4.html">Implicit Conversions Change Data Values</a></span></dt>
|
|
<dt><span class="section"><a href="tutorial/10.html">Mixing Data Types Can Create Subtle Errors</a></span></dt>
|
|
<dt><span class="section"><a href="tutorial/5.html">Array Index Value Can Exceed Array Limits</a></span></dt>
|
|
<dt><span class="section"><a href="tutorial/6.html">Checking of Input Values Can Be Easily Overlooked</a></span></dt>
|
|
<dt><span class="section"><a href="tutorial/7.html">Programming by Contract is Too Slow</a></span></dt>
|
|
</dl></dd>
|
|
<dt><span class="section"><a href="eliminate_runtime_penalty.html">Eliminating Runtime Penalty</a></span></dt>
|
|
<dd><dl>
|
|
<dt><span class="section"><a href="eliminate_runtime_penalty/1.html">Using Automatic Type Promotion</a></span></dt>
|
|
<dt><span class="section"><a href="eliminate_runtime_penalty/2.html">Using safe_range</a></span></dt>
|
|
<dt><span class="section"><a href="eliminate_runtime_penalty/3.html">Mixing Approaches</a></span></dt>
|
|
</dl></dd>
|
|
<dt><span class="section"><a href="notes.html">Notes</a></span></dt>
|
|
<dt><span class="section"><a href="concepts.html">Type Requirements</a></span></dt>
|
|
<dd><dl>
|
|
<dt><span class="section"><a href="numeric.html">Numeric<T></a></span></dt>
|
|
<dt><span class="section"><a href="integer.html">Integer<T></a></span></dt>
|
|
<dt><span class="section"><a href="safe_numeric_concept.html">SafeNumeric<T></a></span></dt>
|
|
<dt><span class="section"><a href="promotion_policy.html">PromotionPolicy<PP></a></span></dt>
|
|
<dt><span class="section"><a href="exception_policy.html">ExceptionPolicy<EP></a></span></dt>
|
|
</dl></dd>
|
|
<dt><span class="section"><a href="types.html">Types</a></span></dt>
|
|
<dd><dl>
|
|
<dt><span class="section"><a href="safe.html">safe<T, PP = boost::numeric::native, EP =
|
|
boost::numeric::throw_exception></a></span></dt>
|
|
<dt><span class="section"><a href="safe_range.html">safe_signed_range<MIN, MAX, PP, EP> and
|
|
safe_unsigned_range<MIN, MAX, PP, EP></a></span></dt>
|
|
<dt><span class="section"><a href="safe_literal.html">safe_literal<Value>, safe_unsigned_literal<Value></a></span></dt>
|
|
<dt><span class="section"><a href="promotion_policies.html">Promotion Policies</a></span></dt>
|
|
<dt><span class="section"><a href="exception_policies.html">Exception Policies</a></span></dt>
|
|
</dl></dd>
|
|
<dt><span class="section"><a href="exception_safety.html">Exception Safety</a></span></dt>
|
|
<dt><span class="section"><a href="library_implementation.html">Library Implementation</a></span></dt>
|
|
<dd><dl>
|
|
<dt><span class="section"><a href="exception_type.html">exception_type</a></span></dt>
|
|
<dt><span class="section"><a href="checked_result.html">checked_result<typename R></a></span></dt>
|
|
<dt><span class="section"><a href="checked_integer_arithmetic.html">Checked Integer Arithmetic</a></span></dt>
|
|
<dt><span class="section"><a href="interval.html">interval<typename R></a></span></dt>
|
|
</dl></dd>
|
|
<dt><span class="section"><a href="performance_tests.html">Performance Tests</a></span></dt>
|
|
<dt><span class="section"><a href="rationale.html">Rationale and FAQ</a></span></dt>
|
|
<dt><span class="section"><a href="pending_issues.html">Pending Issues</a></span></dt>
|
|
<dt><span class="section"><a href="change_log.html">Change Log</a></span></dt>
|
|
<dt><span class="section"><a href="bibliography.html">Bibliography</a></span></dt>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
|
<td align="left"><p><small>Last revised: $Date</small></p></td>
|
|
<td align="right"><div class="copyright-footer"></div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav"><a accesskey="n" href="introduction.html"><img src="images/next.png" alt="Next"></a></div>
|
|
</body>
|
|
</html>
|