• 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>Concept CopyConstructible</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="concept_check.html#concepts.reference" title="Concept reference">
10<link rel="prev" href="DefaultConstructible.html" title="Concept DefaultConstructible">
11<link rel="next" href="EqualityComparable.html" title="Concept EqualityComparable">
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="DefaultConstructible.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="concept_check.html#concepts.reference"><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="EqualityComparable.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="refentry">
27<a name="CopyConstructible"></a><div class="titlepage"></div>
28<div class="refnamediv">
29<h2><span class="refentrytitle">Concept CopyConstructible</span></h2>
30<p>CopyConstructible</p>
31</div>
32<div class="refsect1">
33<a name="id-1.3.49.3.11.3"></a><h2>Description</h2>
34<p>Copy constructible types must be able to be constructed from another
35  member of the type.</p>
36</div>
37<div class="refsect1">
38<a name="id-1.3.49.3.11.4"></a><h2>Notation</h2>
39<div class="variablelist"><dl class="variablelist">
40<dt><span class="term">X</span></dt>
41<dd>A type playing the role of copy-constructible-type in the <a class="link" href="CopyConstructible.html" title="Concept CopyConstructible">CopyConstructible</a> concept.</dd>
42<dt>
43<span class="term"><code class="varname">x</code>, </span><span class="term"><code class="varname">y</code></span>
44</dt>
45<dd>Objects of type X</dd>
46</dl></div>
47</div>
48<div class="refsect1">
49<a name="id-1.3.49.3.11.5"></a><h2>Valid expressions</h2>
50<div class="informaltable"><table class="table">
51<colgroup>
52<col>
53<col>
54<col>
55<col>
56</colgroup>
57<thead><tr>
58<th>Name</th>
59<th>Expression</th>
60<th>Type</th>
61<th>Semantics</th>
62</tr></thead>
63<tbody><tr>
64<td><p>Copy construction</p></td>
65<td><p>X(x)</p></td>
66<td><p><span class="type">X</span></p></td>
67<td><p>Require copy constructor.</p></td>
68</tr></tbody>
69</table></div>
70</div>
71<div class="refsect1">
72<a name="id-1.3.49.3.11.6"></a><h2>Models</h2>
73<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><span class="simplelist"><span class="type">int</span></span></li></ul></div>
74</div>
75</div>
76<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
77<td align="left"></td>
78<td align="right"><div class="copyright-footer">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<p>Distributed under the Boost Software License, Version 1.0.
79      (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at
80      <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
81      </p>
82<p>This product includes software developed at the University
83      of Notre Dame and the Pervasive Technology Labs at Indiana
84      University. For technical information contact Andrew Lumsdaine
85      at the Pervasive Technology Labs at Indiana University.  For
86      administrative and license questions contact the Advanced
87      Research and Technology Institute at 351 West 10th Street.
88      Indianapolis, Indiana 46202, phone 317-278-4100, fax
89      317-274-5902.</p>
90<p>Some concepts based on versions from the MTL draft manual
91      and Boost Graph and Property Map documentation, the SGI Standard
92      Template Library documentation and the Hewlett-Packard STL,
93      under the following license:
94        </p>
95<div class="blockquote"><blockquote class="blockquote"><p>Permission to use, copy, modify, distribute and
96        sell this software and its documentation for any purpose is
97        hereby granted without fee, provided that the above copyright
98        notice appears in all copies and that both that copyright
99        notice and this permission notice appear in supporting
100        documentation.  Silicon Graphics makes no representations
101        about the suitability of this software for any purpose.  It is
102        provided "as is" without express or implied
103        warranty.</p></blockquote></div>
104</div></td>
105</tr></table>
106<hr>
107<div class="spirit-nav">
108<a accesskey="p" href="DefaultConstructible.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="concept_check.html#concepts.reference"><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="EqualityComparable.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
109</div>
110</body>
111</html>
112