• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>make_set</title>
5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.2">
8<link rel="up" href="../metafunctions.html" title="MetaFunctions">
9<link rel="prev" href="make_deque.html" title="make_deque">
10<link rel="next" href="make_map.html" title="make_map">
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_deque.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_map.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_set"></a><a class="link" href="make_set.html" title="make_set">make_set</a>
28</h5></div></div></div>
29<h6>
30<a name="fusion.container.generation.metafunctions.make_set.h0"></a>
31            <span class="phrase"><a name="fusion.container.generation.metafunctions.make_set.description"></a></span><a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.description">Description</a>
32          </h6>
33<p>
34            Returns the result type of <a class="link" href="../functions/make_set.html" title="make_set"><code class="computeroutput"><span class="identifier">make_set</span></code></a>.
35          </p>
36<h6>
37<a name="fusion.container.generation.metafunctions.make_set.h1"></a>
38            <span class="phrase"><a name="fusion.container.generation.metafunctions.make_set.synopsis"></a></span><a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.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="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">&gt;</span>
41<span class="keyword">struct</span> <span class="identifier">make_set</span><span class="special">;</span>
42</pre>
43<p>
44            For C++11 compilers, the variadic function interface has no upper bound.
45          </p>
46<p>
47            For C++03 compilers, the variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
48            to <code class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></code>
49            elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_SET_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_SET_SIZE</span></code> before
52            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_SET_SIZE</span> <span class="number">20</span>
55</pre>
56<h6>
57<a name="fusion.container.generation.metafunctions.make_set.h2"></a>
58            <span class="phrase"><a name="fusion.container.generation.metafunctions.make_set.parameters"></a></span><a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.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">T0</span><span class="special">,</span>
87                      <span class="identifier">T1</span><span class="special">,...</span>
88                      <span class="identifier">TN</span></code>
89                    </p>
90                  </td>
91<td>
92                    <p>
93                      Any type
94                    </p>
95                  </td>
96<td>
97                    <p>
98                      The arguments to <code class="computeroutput"><span class="identifier">make_set</span></code>
99                    </p>
100                  </td>
101</tr></tbody>
102</table></div>
103<h6>
104<a name="fusion.container.generation.metafunctions.make_set.h3"></a>
105            <span class="phrase"><a name="fusion.container.generation.metafunctions.make_set.expression_semantics"></a></span><a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.expression_semantics">Expression
106            Semantics</a>
107          </h6>
108<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span><span class="special">&lt;</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">&gt;::</span><span class="identifier">type</span>
109</pre>
110<p>
111            <span class="bold"><strong>Return type</strong></span>: A <a class="link" href="../../set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> with elements of types converted
112            following the rules for <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
113            conversion</em></span></a>.
114          </p>
115<p>
116            <span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
117          </p>
118<p>
119            <span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
120            key types.
121          </p>
122<h6>
123<a name="fusion.container.generation.metafunctions.make_set.h4"></a>
124            <span class="phrase"><a name="fusion.container.generation.metafunctions.make_set.header"></a></span><a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.header">Header</a>
125          </h6>
126<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_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
127<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_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
128</pre>
129<h6>
130<a name="fusion.container.generation.metafunctions.make_set.h5"></a>
131            <span class="phrase"><a name="fusion.container.generation.metafunctions.make_set.example"></a></span><a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.example">Example</a>
132          </h6>
133<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
134</pre>
135</div>
136<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
137<td align="left"></td>
138<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman,
139      Dan Marsden, Tobias Schwinger<p>
140        Distributed under the Boost Software License, Version 1.0. (See accompanying
141        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>)
142      </p>
143</div></td>
144</tr></table>
145<hr>
146<div class="spirit-nav">
147<a accesskey="p" href="make_deque.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_map.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
148</div>
149</body>
150</html>
151