• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>BoostBook element copy-assignment</title>
6<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9<link rel="up" href="../../reference.html" title="Reference">
10<link rel="prev" href="librarypurpose.html" title="BoostBook element librarypurpose">
11<link rel="next" href="run-fail-test.html" title="BoostBook element run-fail-test">
12</head>
13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14<table cellpadding="2" width="100%"><tr>
15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
16<td align="center"><a href="../../../../index.html">Home</a></td>
17<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20<td align="center"><a href="../../../../more/index.htm">More</a></td>
21</tr></table>
22<hr>
23<div class="spirit-nav">
24<a accesskey="p" href="librarypurpose.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="run-fail-test.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="refentry">
27<a name="boostbook.dtd.copy-assignment"></a><div class="titlepage"></div>
28<div class="refnamediv">
29<h2><span class="refentrytitle">
30          BoostBook element <code class="sgmltag-element">copy-assignment</code></span></h2>
31<p>copy-assignment — Declares a copy-assignment operator</p>
32</div>
33<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
34<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv">copy-assignment ::=
35  (<a class="link" href="template.html" title="BoostBook element template">template</a>?, <a class="link" href="type.html" title="BoostBook element type">type</a>?, <a class="link" href="parameter.html" title="BoostBook element parameter">parameter</a>*, <a class="link" href="purpose.html" title="BoostBook element purpose">purpose</a>?, <a class="link" href="description.html" title="BoostBook element description">description</a>?, <a class="link" href="requires.html" title="BoostBook element requires">requires</a>?, <a class="link" href="effects.html" title="BoostBook element effects">effects</a>?, <a class="link" href="postconditions.html" title="BoostBook element postconditions">postconditions</a>?, <a class="link" href="returns.html" title="BoostBook element returns">returns</a>?, <a class="link" href="throws.html" title="BoostBook element throws">throws</a>?, <a class="link" href="complexity.html" title="BoostBook element complexity">complexity</a>?, <a class="link" href="notes.html" title="BoostBook element notes">notes</a>?, <a class="link" href="rationale.html" title="BoostBook element rationale">rationale</a>?)
36</div>
37<div class="refsection">
38<a name="id-1.4.3.7.46.4"></a><h2>Description</h2>
39<p>The return type of the copy-assignment operator does not need
40  to be specified. If left unspecified, it will default to an
41  unqualified reference to the enclosing class type.</p>
42<p>General documentation on functions in BoostBook is provided in
43  the <a class="link" href="function.html" title="BoostBook element function"><code class="sgmltag-element">function</code></a>
44  element documentation.</p>
45</div>
46<div class="refsection">
47<a name="id-1.4.3.7.46.5"></a><h2>Attributes</h2>
48<div class="informaltable"><table class="table">
49<colgroup>
50<col>
51<col>
52<col>
53<col>
54</colgroup>
55<thead><tr>
56<th>Name</th>
57<th>Type</th>
58<th>Value</th>
59<th>Purpose</th>
60</tr></thead>
61<tbody>
62<tr>
63<td>last-revision</td>
64<td>#IMPLIED</td>
65<td>CDATA</td>
66<td>Set to $Date$ to keep "last revised" information in sync with CVS changes</td>
67</tr>
68<tr>
69<td>cv</td>
70<td>#IMPLIED</td>
71<td>CDATA</td>
72<td>cv-qualifiers for this method, e.g., const volatile</td>
73</tr>
74<tr>
75<td>specifiers</td>
76<td>#IMPLIED</td>
77<td>CDATA</td>
78<td>The specifiers for this function, e.g., inline, static, etc.</td>
79</tr>
80<tr>
81<td>id</td>
82<td>#IMPLIED</td>
83<td>CDATA</td>
84<td>A global identifier for this element</td>
85</tr>
86<tr>
87<td>xml:base</td>
88<td>#IMPLIED</td>
89<td>CDATA</td>
90<td>Implementation detail used by XIncludes</td>
91</tr>
92</tbody>
93</table></div>
94</div>
95</div>
96<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
97<td align="left"></td>
98<td align="right"><div class="copyright-footer">Copyright © 2003-2005 Douglas Gregor<p>Distributed under the Boost Software License, Version 1.0.
99      (See accompanying file LICENSE_1_0.txt or copy at
100      <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
101      </p>
102</div></td>
103</tr></table>
104<hr>
105<div class="spirit-nav">
106<a accesskey="p" href="librarypurpose.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="run-fail-test.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
107</div>
108</body>
109</html>
110