• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>async_completion</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="../../boost_asio.html" title="Boost.Asio">
8<link rel="up" href="../reference.html" title="Reference">
9<link rel="prev" href="associated_executor/type.html" title="associated_executor::type">
10<link rel="next" href="async_completion/async_completion.html" title="async_completion::async_completion">
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="associated_executor/type.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="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="async_completion/async_completion.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="boost_asio.reference.async_completion"></a><a class="link" href="async_completion.html" title="async_completion">async_completion</a>
28</h3></div></div></div>
29<p>
30        Helper template to deduce the handler type from a CompletionToken, capture
31        a local copy of the handler, and then create an <a class="link" href="async_result.html" title="async_result"><code class="computeroutput">async_result</code></a>
32        for the handler.
33      </p>
34<pre class="programlisting">template&lt;
35    typename CompletionToken,
36    typename Signature&gt;
37struct async_completion
38</pre>
39<h5>
40<a name="boost_asio.reference.async_completion.h0"></a>
41        <span class="phrase"><a name="boost_asio.reference.async_completion.types"></a></span><a class="link" href="async_completion.html#boost_asio.reference.async_completion.types">Types</a>
42      </h5>
43<div class="informaltable"><table class="table">
44<colgroup>
45<col>
46<col>
47</colgroup>
48<thead><tr>
49<th>
50                <p>
51                  Name
52                </p>
53              </th>
54<th>
55                <p>
56                  Description
57                </p>
58              </th>
59</tr></thead>
60<tbody><tr>
61<td>
62                <p>
63                  <a class="link" href="async_completion/completion_handler_type.html" title="async_completion::completion_handler_type"><span class="bold"><strong>completion_handler_type</strong></span></a>
64                </p>
65              </td>
66<td>
67                <p>
68                  The real handler type to be used for the asynchronous operation.
69                </p>
70              </td>
71</tr></tbody>
72</table></div>
73<h5>
74<a name="boost_asio.reference.async_completion.h1"></a>
75        <span class="phrase"><a name="boost_asio.reference.async_completion.member_functions"></a></span><a class="link" href="async_completion.html#boost_asio.reference.async_completion.member_functions">Member Functions</a>
76      </h5>
77<div class="informaltable"><table class="table">
78<colgroup>
79<col>
80<col>
81</colgroup>
82<thead><tr>
83<th>
84                <p>
85                  Name
86                </p>
87              </th>
88<th>
89                <p>
90                  Description
91                </p>
92              </th>
93</tr></thead>
94<tbody><tr>
95<td>
96                <p>
97                  <a class="link" href="async_completion/async_completion.html" title="async_completion::async_completion"><span class="bold"><strong>async_completion</strong></span></a> <span class="silver">[constructor]</span>
98                </p>
99              </td>
100<td>
101                <p>
102                  Constructor.
103                </p>
104              </td>
105</tr></tbody>
106</table></div>
107<h5>
108<a name="boost_asio.reference.async_completion.h2"></a>
109        <span class="phrase"><a name="boost_asio.reference.async_completion.data_members"></a></span><a class="link" href="async_completion.html#boost_asio.reference.async_completion.data_members">Data
110        Members</a>
111      </h5>
112<div class="informaltable"><table class="table">
113<colgroup>
114<col>
115<col>
116</colgroup>
117<thead><tr>
118<th>
119                <p>
120                  Name
121                </p>
122              </th>
123<th>
124                <p>
125                  Description
126                </p>
127              </th>
128</tr></thead>
129<tbody>
130<tr>
131<td>
132                <p>
133                  <a class="link" href="async_completion/completion_handler.html" title="async_completion::completion_handler"><span class="bold"><strong>completion_handler</strong></span></a>
134                </p>
135              </td>
136<td>
137                <p>
138                  A copy of, or reference to, a real handler object.
139                </p>
140              </td>
141</tr>
142<tr>
143<td>
144                <p>
145                  <a class="link" href="async_completion/result.html" title="async_completion::result"><span class="bold"><strong>result</strong></span></a>
146                </p>
147              </td>
148<td>
149                <p>
150                  The result of the asynchronous operation's initiating function.
151                </p>
152              </td>
153</tr>
154</tbody>
155</table></div>
156<h5>
157<a name="boost_asio.reference.async_completion.h3"></a>
158        <span class="phrase"><a name="boost_asio.reference.async_completion.requirements"></a></span><a class="link" href="async_completion.html#boost_asio.reference.async_completion.requirements">Requirements</a>
159      </h5>
160<p>
161        <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/async_result.hpp</code>
162      </p>
163<p>
164        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code>
165      </p>
166</div>
167<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
168<td align="left"></td>
169<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
170      Kohlhoff<p>
171        Distributed under the Boost Software License, Version 1.0. (See accompanying
172        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>)
173      </p>
174</div></td>
175</tr></table>
176<hr>
177<div class="spirit-nav">
178<a accesskey="p" href="associated_executor/type.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="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="async_completion/async_completion.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
179</div>
180</body>
181</html>
182