forked from boostorg/fusion
@ -3,10 +3,10 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Construction</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
<link rel="home" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../class_template_tuple.html" title="Class template tuple">
|
||||
<link rel="prev" href="../class_template_tuple.html" title="Class template tuple">
|
||||
<link rel="previous" href="../class_template_tuple.html" title="Class template tuple">
|
||||
<link rel="next" href="tuple_creation_functions.html" title="Tuple
|
||||
creation functions">
|
||||
</head>
|
||||
@ -24,10 +24,14 @@
|
||||
<a accesskey="p" href="../class_template_tuple.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../class_template_tuple.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="tuple_creation_functions.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.tuple.class_template_tuple.construction"></a><a href="construction.html" title="Construction">Construction</a></h4></div></div></div>
|
||||
<div class="titlepage">
|
||||
<div><div><h4 class="title">
|
||||
<a name="fusion.tuple.class_template_tuple.construction"></a><a href="construction.html" title="Construction">Construction</a>
|
||||
</h4></div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.tuple.class_template_tuple.construction.description"></a><h5>
|
||||
<a name="id1250196"></a>
|
||||
<a name="id590370"></a>
|
||||
<a href="construction.html#fusion.tuple.class_template_tuple.construction.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
@ -38,33 +42,33 @@
|
||||
in this section.
|
||||
</p>
|
||||
<a name="fusion.tuple.class_template_tuple.construction.specification"></a><h5>
|
||||
<a name="id1250235"></a>
|
||||
<a name="id590411"></a>
|
||||
<a href="construction.html#fusion.tuple.class_template_tuple.construction.specification">Specification</a>
|
||||
</h5>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">T1</span>
|
||||
<span class="special">...</span> <span class="identifier">TN</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">U1</span> <span class="special">...</span>
|
||||
<span class="identifier">UN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">T1</span>
|
||||
<span class="special">...</span> <span class="identifier">TN</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">U1</span> <span class="special">...</span>
|
||||
<span class="identifier">UN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Tuple element types
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">P1</span>
|
||||
<span class="special">...</span> <span class="identifier">PN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">P1</span>
|
||||
<span class="special">...</span> <span class="identifier">PN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Parameter types
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">Ti</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">Ui</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">Ti</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">Ui</span></tt></span></dt>
|
||||
<dd><p>
|
||||
The type of the <code class="computeroutput"><span class="identifier">i</span></code>th
|
||||
The type of the <tt class="computeroutput"><span class="identifier">i</span></tt>th
|
||||
element of a tuple
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">Pi</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">Pi</span></tt></span></dt>
|
||||
<dd><p>
|
||||
The type of the <code class="computeroutput"><span class="identifier">i</span></code>th
|
||||
The type of the <tt class="computeroutput"><span class="identifier">i</span></tt>th
|
||||
parameter
|
||||
</p></dd>
|
||||
</dl>
|
||||
@ -72,45 +76,45 @@
|
||||
<pre class="programlisting"><span class="identifier">tuple</span><span class="special">();</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>: Each <code class="computeroutput"><span class="identifier">Ti</span></code>
|
||||
<span class="bold"><b>Requirements</b></span>: Each <tt class="computeroutput"><span class="identifier">Ti</span></tt>
|
||||
is default constructable.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Default initializes each element
|
||||
<span class="bold"><b>Semantics</b></span>: Default initializes each element
|
||||
of the tuple.
|
||||
</p>
|
||||
<pre class="programlisting"><span class="identifier">tuple</span><span class="special">(</span><span class="identifier">P1</span><span class="special">,</span><span class="identifier">P2</span><span class="special">,...,</span><span class="identifier">PN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>: Each <code class="computeroutput"><span class="identifier">Pi</span></code>
|
||||
is <code class="computeroutput"><span class="identifier">Ti</span></code> if <code class="computeroutput"><span class="identifier">Ti</span></code> is a reference type, <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">Ti</span><span class="special">&</span></code> otherwise.
|
||||
<span class="bold"><b>Requirements</b></span>: Each <tt class="computeroutput"><span class="identifier">Pi</span></tt>
|
||||
is <tt class="computeroutput"><span class="identifier">Ti</span></tt> if <tt class="computeroutput"><span class="identifier">Ti</span></tt> is a reference type, <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">Ti</span><span class="special">&</span></tt> otherwise.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Copy initializes each element
|
||||
<span class="bold"><b>Semantics</b></span>: Copy initializes each element
|
||||
with the corresponding parameter.
|
||||
</p>
|
||||
<pre class="programlisting"><span class="identifier">tuple</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">tuple</span><span class="special">&</span> <span class="identifier">t</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>: Each <code class="computeroutput"><span class="identifier">Ti</span></code>
|
||||
<span class="bold"><b>Requirements</b></span>: Each <tt class="computeroutput"><span class="identifier">Ti</span></tt>
|
||||
should be copy constructable.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Copy constructs each element
|
||||
of <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>
|
||||
with the corresponding element of <code class="computeroutput"><span class="identifier">t</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Copy constructs each element
|
||||
of <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt>
|
||||
with the corresponding element of <tt class="computeroutput"><span class="identifier">t</span></tt>.
|
||||
</p>
|
||||
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">U1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">U2</span><span class="special">,</span> <span class="special">...,</span> <span class="keyword">typename</span> <span class="identifier">UN</span><span class="special">></span>
|
||||
<span class="identifier">tuple</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">tuple</span><span class="special"><</span><span class="identifier">U1</span><span class="special">,</span> <span class="identifier">U2</span><span class="special">,</span> <span class="special">...,</span> <span class="identifier">UN</span><span class="special">>&</span> <span class="identifier">t</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><strong>Requirements</strong></span>: Each <code class="computeroutput"><span class="identifier">Ti</span></code>
|
||||
shall be constructible from the corresponding <code class="computeroutput"><span class="identifier">Ui</span></code>.
|
||||
<span class="bold"><b>Requirements</b></span>: Each <tt class="computeroutput"><span class="identifier">Ti</span></tt>
|
||||
shall be constructible from the corresponding <tt class="computeroutput"><span class="identifier">Ui</span></tt>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Constructs each element of
|
||||
<code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>
|
||||
with the corresponding element of <code class="computeroutput"><span class="identifier">t</span></code>.
|
||||
<span class="bold"><b>Semantics</b></span>: Constructs each element of
|
||||
<tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt>
|
||||
with the corresponding element of <tt class="computeroutput"><span class="identifier">t</span></tt>.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
Reference in New Issue
Block a user