3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>Class templates for type synthesis
</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 1. Boost.FunctionTypes 2.5">
8 <link rel=
"up" href=
"../reference.html" title=
"Reference">
9 <link rel=
"prev" href=
"decomposition.html" title=
"Class templates for type decomposition">
10 <link rel=
"next" href=
"tag_types.html" title=
"Tag Types">
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>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"decomposition.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../reference.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=
"tag_types.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h3 class=
"title">
27 <a name=
"boost_functiontypes.reference.synthesis"></a><a class=
"link" href=
"synthesis.html" title=
"Class templates for type synthesis">Class templates
28 for type synthesis
</a>
29 </h3></div></div></div>
31 <dt><span class=
"section"><a href=
"synthesis.html#boost_functiontypes.reference.synthesis.function_type">function_type
</a></span></dt>
32 <dt><span class=
"section"><a href=
"synthesis.html#boost_functiontypes.reference.synthesis.function_pointer">function_pointer
</a></span></dt>
33 <dt><span class=
"section"><a href=
"synthesis.html#boost_functiontypes.reference.synthesis.function_reference">function_reference
</a></span></dt>
34 <dt><span class=
"section"><a href=
"synthesis.html#boost_functiontypes.reference.synthesis.member_function_pointer">member_function_pointer
</a></span></dt>
37 <div class=
"titlepage"><div><div><h4 class=
"title">
38 <a name=
"boost_functiontypes.reference.synthesis.function_type"></a><a class=
"link" href=
"synthesis.html#boost_functiontypes.reference.synthesis.function_type" title=
"function_type">function_type
</a>
39 </h4></div></div></div>
40 <pre class=
"programlisting"><span class=
"keyword">template
</span><span class=
"special"><</span><span class=
"keyword">typename
</span> <span class=
"identifier">Types
</span><span class=
"special">,
</span> <span class=
"keyword">typename
</span> <span class=
"identifier">Tag
</span> <span class=
"special">=
</span> <a class=
"link" href=
"tag_types.html#boost_functiontypes.reference.tag_types.null_tag" title=
"null_tag">null_tag
</a><span class=
"special">></span>
41 <span class=
"keyword">struct
</span> <span class=
"identifier">function_type
</span><span class=
"special">;
</span>
44 <span class=
"bold"><strong>Header
</strong></span>
46 <pre class=
"programlisting"><span class=
"preprocessor">#include
</span> <span class=
"special"><</span><span class=
"identifier">boost
</span><span class=
"special">/
</span><span class=
"identifier">function_types
</span><span class=
"special">/
</span><span class=
"identifier">function_type
</span><span class=
"special">.
</span><span class=
"identifier">hpp
</span><span class=
"special">></span>
48 <div class=
"variablelist">
49 <p class=
"title"><b></b></p>
51 <dt><span class=
"term"><code class=
"literal">Types
</code></span></dt>
53 Component types in form of an
<a href=
"../../../../../mpl/index.html" target=
"_top">MPL
</a>
54 -
<a href=
"../../../../../mpl/doc/refmanual/forward-sequence.html" target=
"_top">Forward
55 Sequence
</a> or another callable, builtin type
57 <dt><span class=
"term"><code class=
"literal">Tag
</code></span></dt>
61 <dt><span class=
"term"><code class=
"literal">function_type
<Types,Tag
>::type
</code></span></dt>
68 Synthesizes a function type from given properties.
71 If the template parameters do not describe a valid type, any attempt to
72 access the
<code class=
"literal">type
</code> member will result in a compile error.
76 <div class=
"titlepage"><div><div><h4 class=
"title">
77 <a name=
"boost_functiontypes.reference.synthesis.function_pointer"></a><a class=
"link" href=
"synthesis.html#boost_functiontypes.reference.synthesis.function_pointer" title=
"function_pointer">function_pointer
</a>
78 </h4></div></div></div>
79 <pre class=
"programlisting"><span class=
"keyword">template
</span><span class=
"special"><</span><span class=
"keyword">typename
</span> <span class=
"identifier">Types
</span><span class=
"special">,
</span> <span class=
"keyword">typename
</span> <span class=
"identifier">Tag
</span> <span class=
"special">=
</span> <a class=
"link" href=
"tag_types.html#boost_functiontypes.reference.tag_types.null_tag" title=
"null_tag">null_tag
</a><span class=
"special">></span>
80 <span class=
"keyword">struct
</span> <span class=
"identifier">function_pointer
</span><span class=
"special">;
</span>
83 <span class=
"bold"><strong>Header
</strong></span>
85 <pre class=
"programlisting"><span class=
"preprocessor">#include
</span> <span class=
"special"><</span><span class=
"identifier">boost
</span><span class=
"special">/
</span><span class=
"identifier">function_types
</span><span class=
"special">/
</span><span class=
"identifier">function_pointer
</span><span class=
"special">.
</span><span class=
"identifier">hpp
</span><span class=
"special">></span>
87 <div class=
"variablelist">
88 <p class=
"title"><b></b></p>
90 <dt><span class=
"term"><code class=
"literal">Types
</code></span></dt>
92 Component types in form of an
<a href=
"../../../../../mpl/index.html" target=
"_top">MPL
</a>
93 -
<a href=
"../../../../../mpl/doc/refmanual/forward-sequence.html" target=
"_top">Forward
94 Sequence
</a> or another callable, builtin type
96 <dt><span class=
"term"><code class=
"literal">Tag
</code></span></dt>
100 <dt><span class=
"term"><code class=
"literal">function_pointer
<Types,Tag
>::type
</code></span></dt>
107 Synthesizes a function pointer type from given properties.
110 If the template parameters do not describe a valid type, any attempt to
111 access the
<code class=
"literal">type
</code> member will result in a compile error.
114 <div class=
"section">
115 <div class=
"titlepage"><div><div><h4 class=
"title">
116 <a name=
"boost_functiontypes.reference.synthesis.function_reference"></a><a class=
"link" href=
"synthesis.html#boost_functiontypes.reference.synthesis.function_reference" title=
"function_reference">function_reference
</a>
117 </h4></div></div></div>
118 <pre class=
"programlisting"><span class=
"keyword">template
</span><span class=
"special"><</span><span class=
"keyword">typename
</span> <span class=
"identifier">Types
</span><span class=
"special">,
</span> <span class=
"keyword">typename
</span> <span class=
"identifier">Tag
</span> <span class=
"special">=
</span> <a class=
"link" href=
"tag_types.html#boost_functiontypes.reference.tag_types.null_tag" title=
"null_tag">null_tag
</a><span class=
"special">></span>
119 <span class=
"keyword">struct
</span> <span class=
"identifier">function_reference
</span><span class=
"special">;
</span>
122 <span class=
"bold"><strong>Header
</strong></span>
124 <pre class=
"programlisting"><span class=
"preprocessor">#include
</span> <span class=
"special"><</span><span class=
"identifier">boost
</span><span class=
"special">/
</span><span class=
"identifier">function_types
</span><span class=
"special">/
</span><span class=
"identifier">function_reference
</span><span class=
"special">.
</span><span class=
"identifier">hpp
</span><span class=
"special">></span>
126 <div class=
"variablelist">
127 <p class=
"title"><b></b></p>
129 <dt><span class=
"term"><code class=
"literal">Types
</code></span></dt>
131 Component types in form of an
<a href=
"../../../../../mpl/index.html" target=
"_top">MPL
</a>
132 -
<a href=
"../../../../../mpl/doc/refmanual/forward-sequence.html" target=
"_top">Forward
133 Sequence
</a> or another callable, builtin type
135 <dt><span class=
"term"><code class=
"literal">Tag
</code></span></dt>
139 <dt><span class=
"term"><code class=
"literal">function_reference
<Types,Tag
>::type
</code></span></dt>
146 Synthesizes a function reference type from given properties.
149 If the template parameters do not describe a valid type, any attempt to
150 access the
<code class=
"literal">type
</code> member will result in a compile error.
153 <div class=
"section">
154 <div class=
"titlepage"><div><div><h4 class=
"title">
155 <a name=
"boost_functiontypes.reference.synthesis.member_function_pointer"></a><a class=
"link" href=
"synthesis.html#boost_functiontypes.reference.synthesis.member_function_pointer" title=
"member_function_pointer">member_function_pointer
</a>
156 </h4></div></div></div>
157 <pre class=
"programlisting"><span class=
"keyword">template
</span><span class=
"special"><</span><span class=
"keyword">typename
</span> <span class=
"identifier">Types
</span><span class=
"special">,
</span> <span class=
"keyword">typename
</span> <span class=
"identifier">Tag
</span> <span class=
"special">=
</span> <a class=
"link" href=
"tag_types.html#boost_functiontypes.reference.tag_types.null_tag" title=
"null_tag">null_tag
</a><span class=
"special">></span>
158 <span class=
"keyword">struct
</span> <span class=
"identifier">member_function_pointer
</span><span class=
"special">;
</span>
161 <span class=
"bold"><strong>Header
</strong></span>
163 <pre class=
"programlisting"><span class=
"preprocessor">#include
</span> <span class=
"special"><</span><span class=
"identifier">boost
</span><span class=
"special">/
</span><span class=
"identifier">function_types
</span><span class=
"special">/
</span><span class=
"identifier">member_function_pointer
</span><span class=
"special">.
</span><span class=
"identifier">hpp
</span><span class=
"special">></span>
165 <div class=
"variablelist">
166 <p class=
"title"><b></b></p>
168 <dt><span class=
"term"><code class=
"literal">Types
</code></span></dt>
170 Component types in form of an
<a href=
"../../../../../mpl/index.html" target=
"_top">MPL
</a>
171 -
<a href=
"../../../../../mpl/doc/refmanual/forward-sequence.html" target=
"_top">Forward
172 Sequence
</a> or another callable, builtin type
174 <dt><span class=
"term"><code class=
"literal">Tag
</code></span></dt>
178 <dt><span class=
"term"><code class=
"literal">member_function_pointer
<Types,Tag
>::type
</code></span></dt>
185 Synthesizes a member function pointer type from given properties.
188 An optional reference or possibly cv-qualified pointer is removed from
189 the second type in the sequence to determine the the class type. The cv-qualification
190 of the resulting type applies to the member function, unless otherwise
191 explicitly specified by the property tag.
194 If the template parameters do not describe a valid type, any attempt to
195 access the
<code class=
"literal">type
</code> member will result in a compile error.
199 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
200 <td align=
"left"></td>
201 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2004-
2007 Tobias
203 Distributed under the Boost Software License, Version
1.0. (See accompanying
204 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>)
209 <div class=
"spirit-nav">
210 <a accesskey=
"p" href=
"decomposition.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../reference.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=
"tag_types.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>