Click here to Skip to main content
15,894,017 members
Articles / Programming Languages / C++

Writing an exception safe code in generic way.

Rate me:
Please Sign up or sign in to vote.
4.88/5 (11 votes)
12 Dec 20069 min read 40.9K   326   36  
An article on how to change the way of writing exception-safe code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>am::mate: Writing an exception safe code in generic way.</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li id="current"><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<h1>Writing an exception safe code in generic way.</h1>
<p>
<a class="anchor" name="mate_contents"></a><p>
<ol type=1>
<li><a class="el" href="mate_introduction.html">Introduction.</a></li><li><a class="el" href="mate_basic_usage.html">Basic usage.</a><ol type=a>
<li><a class="el" href="mate_basic_usage.html#mate_bu_s1">Mating a host function call with a mate function.</a></li><li><a class="el" href="mate_basic_usage.html#mate_bu_s2">Composing a mate fuction object.</a></li><li><a class="el" href="mate_basic_usage.html#mate_bu_s3">Mating with a condition.</a></li><li><a class="el" href="mate_basic_usage.html#mate_bu_s4">am::mate&lt;void&gt; specialization.</a></li></ol>
</li><li><a class="el" href="mate_utility_classes.html">Utility classes and their helper template functions.</a><ol type=a>
<li><a class="el" href="mate_utility_classes.html#mate_uc_s1">Supporting parameter by reference: am::ref and am::cref.</a></li><li><a class="el" href="mate_utility_classes.html#mate_uc_s2">Free function pointer: am::ptr_fun.</a></li><li><a class="el" href="mate_utility_classes.html#mate_uc_s3">Bind the 1st or the 2nd argument of the binary function: am::bind1st and am::bind2nd.</a></li><li><a class="el" href="mate_utility_classes.html#mate_uc_s4">Miscellaneous.</a></li></ol>
</li><li><a class="el" href="mate_use_lambda.html">Use am::lambda to compose a function object.</a></li><li><a class="el" href="mate_references.html">References.</a> </li></ol>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 16 22:27:42 2006 for am::mate by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Other
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions