Imported Upstream version 1.51.0
[platform/upstream/boost.git] / libs / fusion / doc / html / fusion / container / generation / metafunctions / make_deque.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>make_deque</title>
5 <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="../../../../index.html" title="Chapter&#160;1.&#160;Fusion 2.1">
8 <link rel="up" href="../metafunctions.html" title="MetaFunctions">
9 <link rel="prev" href="make_vector.html" title="make_vector">
10 <link rel="next" href="make_set.html" title="make_set">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="make_vector.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="make_set.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
26 <div class="titlepage"><div><div><h5 class="title">
27 <a name="fusion.container.generation.metafunctions.make_deque"></a><a class="link" href="make_deque.html" title="make_deque">make_deque</a>
28 </h5></div></div></div>
29 <h6>
30 <a name="fusion.container.generation.metafunctions.make_deque.h0"></a>
31             <span><a name="fusion.container.generation.metafunctions.make_deque.description"></a></span><a class="link" href="make_deque.html#fusion.container.generation.metafunctions.make_deque.description">Description</a>
32           </h6>
33 <p>
34             Returns the result type of <a class="link" href="../functions/make_deque.html" title="make_deque"><code class="computeroutput"><span class="identifier">make_deque</span></code></a>.
35           </p>
36 <h6>
37 <a name="fusion.container.generation.metafunctions.make_deque.h1"></a>
38             <span><a name="fusion.container.generation.metafunctions.make_deque.synopsis"></a></span><a class="link" href="make_deque.html#fusion.container.generation.metafunctions.make_deque.synopsis">Synopsis</a>
39           </h6>
40 <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="special">...</span><span class="identifier">Elements</span><span class="special">&gt;</span>
41 <span class="keyword">struct</span> <span class="identifier">make_deque</span><span class="special">;</span>
42 </pre>
43 <p>
44             For C++11 compilers, the variadic template interface has no upper bound.
45           </p>
46 <p>
47             For C++03 The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
48             to <code class="computeroutput"><span class="identifier">FUSION_MAX_DEQUE_SIZE</span></code>
49             elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_DEQUE_SIZE</span></code>
50             is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
51             <code class="computeroutput"><span class="identifier">FUSION_MAX_DEQUE_SIZE</span></code>
52             before including any Fusion header to change the default. Example:
53           </p>
54 <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_DEQUE_SIZE</span> <span class="number">20</span>
55 </pre>
56 <h6>
57 <a name="fusion.container.generation.metafunctions.make_deque.h2"></a>
58             <span><a name="fusion.container.generation.metafunctions.make_deque.parameters"></a></span><a class="link" href="make_deque.html#fusion.container.generation.metafunctions.make_deque.parameters">Parameters</a>
59           </h6>
60 <div class="informaltable"><table class="table">
61 <colgroup>
62 <col>
63 <col>
64 <col>
65 </colgroup>
66 <thead><tr>
67 <th>
68                     <p>
69                       Parameter
70                     </p>
71                   </th>
72 <th>
73                     <p>
74                       Requirement
75                     </p>
76                   </th>
77 <th>
78                     <p>
79                       Description
80                     </p>
81                   </th>
82 </tr></thead>
83 <tbody><tr>
84 <td>
85                     <p>
86                       <code class="computeroutput"><span class="identifier">Elements</span></code>
87                     </p>
88                   </td>
89 <td>
90                     <p>
91                       Variadic template types
92                     </p>
93                   </td>
94 <td>
95                     <p>
96                       Template arguments to <code class="computeroutput"><span class="identifier">make_deque</span></code>
97                     </p>
98                   </td>
99 </tr></tbody>
100 </table></div>
101 <h6>
102 <a name="fusion.container.generation.metafunctions.make_deque.h3"></a>
103             <span><a name="fusion.container.generation.metafunctions.make_deque.expression_semantics"></a></span><a class="link" href="make_deque.html#fusion.container.generation.metafunctions.make_deque.expression_semantics">Expression
104             Semantics</a>
105           </h6>
106 <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_deque</span><span class="special">&lt;</span><span class="identifier">Elements</span><span class="special">...&gt;::</span><span class="identifier">type</span>
107 </pre>
108 <p>
109             <span class="bold"><strong>Return type</strong></span>: A <a class="link" href="../../deque.html" title="deque"><code class="computeroutput"><span class="identifier">deque</span></code></a> with elements of types
110             converted following the rules for <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
111             conversion</em></span></a>.
112           </p>
113 <p>
114             <span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../deque.html" title="deque"><code class="computeroutput"><span class="identifier">deque</span></code></a> from <code class="computeroutput"><span class="identifier">Elements</span><span class="special">...</span></code>.
115           </p>
116 <h6>
117 <a name="fusion.container.generation.metafunctions.make_deque.h4"></a>
118             <span><a name="fusion.container.generation.metafunctions.make_deque.header"></a></span><a class="link" href="make_deque.html#fusion.container.generation.metafunctions.make_deque.header">Header</a>
119           </h6>
120 <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">container</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_deque</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
121 <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_deque</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
122 </pre>
123 <h6>
124 <a name="fusion.container.generation.metafunctions.make_deque.h5"></a>
125             <span><a name="fusion.container.generation.metafunctions.make_deque.example"></a></span><a class="link" href="make_deque.html#fusion.container.generation.metafunctions.make_deque.example">Example</a>
126           </h6>
127 <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_deque</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">(&amp;)[</span><span class="number">7</span><span class="special">],</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
128 </pre>
129 </div>
130 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
131 <td align="left"></td>
132 <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2006, 2011, 2012 Joel de Guzman,
133       Dan Marsden, Tobias Schwinger<p>
134         Distributed under the Boost Software License, Version 1.0. (See accompanying
135         file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
136       </p>
137 </div></td>
138 </tr></table>
139 <hr>
140 <div class="spirit-nav">
141 <a accesskey="p" href="make_vector.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="make_set.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
142 </div>
143 </body>
144 </html>