[29] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
| 4 | <title>Concept CopyConstructible</title> |
---|
| 5 | <link rel="stylesheet" href="boostbook.css" type="text/css"> |
---|
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> |
---|
| 7 | <link rel="start" href="index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> |
---|
| 8 | <link rel="up" href="id620092-bb.html#concepts.reference" title="Concept reference"> |
---|
| 9 | <link rel="prev" href="DefaultConstructible.html" title="Concept DefaultConstructible"> |
---|
| 10 | <link rel="next" href="EqualityComparable.html" title="Concept EqualityComparable"> |
---|
| 11 | </head> |
---|
| 12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
---|
| 13 | <table cellpadding="2" width="100%"> |
---|
| 14 | <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../boost.png"></td> |
---|
| 15 | <td align="center"><a href="../../index.htm">Home</a></td> |
---|
| 16 | <td align="center"><a href="../../libs/libraries.htm">Libraries</a></td> |
---|
| 17 | <td align="center"><a href="../../people/people.htm">People</a></td> |
---|
| 18 | <td align="center"><a href="../../more/faq.htm">FAQ</a></td> |
---|
| 19 | <td align="center"><a href="../../more/index.htm">More</a></td> |
---|
| 20 | </table> |
---|
| 21 | <hr> |
---|
| 22 | <div class="spirit-nav"> |
---|
| 23 | <a accesskey="p" href="DefaultConstructible.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="id620092-bb.html#concepts.reference"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="EqualityComparable.html"><img src="images/next.png" alt="Next"></a> |
---|
| 24 | </div> |
---|
| 25 | <div class="refentry" lang="en"> |
---|
| 26 | <a name="CopyConstructible"></a><div class="titlepage"></div> |
---|
| 27 | <div class="refnamediv"> |
---|
| 28 | <h2><span class="refentrytitle">Concept CopyConstructible</span></h2> |
---|
| 29 | <p>CopyConstructible</p> |
---|
| 30 | </div> |
---|
| 31 | <div class="refsect1" lang="en"> |
---|
| 32 | <a name="id962384"></a><h2>Description</h2> |
---|
| 33 | <p>Copy constructible types must be able to be constructed from another |
---|
| 34 | member of the type.</p> |
---|
| 35 | </div> |
---|
| 36 | <div class="refsect1" lang="en"> |
---|
| 37 | <a name="id962393"></a><h2>Notation</h2> |
---|
| 38 | <div class="variablelist"><dl> |
---|
| 39 | <dt><span class="term">X</span></dt> |
---|
| 40 | <dd>A type playing the role of copy-constructible-type in the <a href="CopyConstructible.html" title="Concept CopyConstructible">CopyConstructible</a> concept.</dd> |
---|
| 41 | <dt> |
---|
| 42 | <span class="term"><code class="varname">x</code>, </span><span class="term"><code class="varname">y</code></span> |
---|
| 43 | </dt> |
---|
| 44 | <dd>Objects of type X</dd> |
---|
| 45 | </dl></div> |
---|
| 46 | </div> |
---|
| 47 | <div class="refsect1" lang="en"> |
---|
| 48 | <a name="id962424"></a><h2>Valid expressions</h2> |
---|
| 49 | <div class="informaltable"><table class="table"> |
---|
| 50 | <colgroup> |
---|
| 51 | <col> |
---|
| 52 | <col> |
---|
| 53 | <col> |
---|
| 54 | <col> |
---|
| 55 | </colgroup> |
---|
| 56 | <thead><tr> |
---|
| 57 | <th>Name</th> |
---|
| 58 | <th>Expression</th> |
---|
| 59 | <th>Type</th> |
---|
| 60 | <th>Semantics</th> |
---|
| 61 | </tr></thead> |
---|
| 62 | <tbody><tr> |
---|
| 63 | <td><p>Copy construction</p></td> |
---|
| 64 | <td><p>X(x)</p></td> |
---|
| 65 | <td><p><span class="type">X</span></p></td> |
---|
| 66 | <td><p>Require copy constructor.</p></td> |
---|
| 67 | </tr></tbody> |
---|
| 68 | </table></div> |
---|
| 69 | </div> |
---|
| 70 | <div class="refsect1" lang="en"> |
---|
| 71 | <a name="id962461"></a><h2>Models</h2> |
---|
| 72 | <div class="itemizedlist"><ul type="disc"><li><span class="simplelist"><span class="type">int</span></span></li></ul></div> |
---|
| 73 | </div> |
---|
| 74 | </div> |
---|
| 75 | <table width="100%"><tr> |
---|
| 76 | <td align="left"></td> |
---|
| 77 | <td align="right"><small>Copyright © 2001, 2002 Indiana University<br>Copyright © 2000, 2001 University of Notre Dame du Lac<br>Copyright © 2000 Jeremy Siek, Lie-Quan Lee, Andrew Lumsdaine<br>Copyright © 1996-1999 Silicon Graphics Computer Systems, Inc.<br>Copyright © 1994 Hewlett-Packard Company</small></td> |
---|
| 78 | </tr></table> |
---|
| 79 | <hr> |
---|
| 80 | <div class="spirit-nav"> |
---|
| 81 | <a accesskey="p" href="DefaultConstructible.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="id620092-bb.html#concepts.reference"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="EqualityComparable.html"><img src="images/next.png" alt="Next"></a> |
---|
| 82 | </div> |
---|
| 83 | </body> |
---|
| 84 | </html> |
---|