• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>executor_binder</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="executor_arg_t/executor_arg_t.html" title="executor_arg_t::executor_arg_t">
10<link rel="next" href="executor_binder/argument_type.html" title="executor_binder::argument_type">
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="executor_arg_t/executor_arg_t.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="executor_binder/argument_type.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.executor_binder"></a><a class="link" href="executor_binder.html" title="executor_binder">executor_binder</a>
28</h3></div></div></div>
29<p>
30        A call wrapper type to bind an executor of type <code class="computeroutput">Executor</code> to
31        an object of type <code class="computeroutput">T</code>.
32      </p>
33<pre class="programlisting">template&lt;
34    typename T,
35    typename <a class="link" href="Executor1.html" title="Executor requirements">Executor</a>&gt;
36class executor_binder
37</pre>
38<h5>
39<a name="boost_asio.reference.executor_binder.h0"></a>
40        <span class="phrase"><a name="boost_asio.reference.executor_binder.types"></a></span><a class="link" href="executor_binder.html#boost_asio.reference.executor_binder.types">Types</a>
41      </h5>
42<div class="informaltable"><table class="table">
43<colgroup>
44<col>
45<col>
46</colgroup>
47<thead><tr>
48<th>
49                <p>
50                  Name
51                </p>
52              </th>
53<th>
54                <p>
55                  Description
56                </p>
57              </th>
58</tr></thead>
59<tbody>
60<tr>
61<td>
62                <p>
63                  <a class="link" href="executor_binder/argument_type.html" title="executor_binder::argument_type"><span class="bold"><strong>argument_type</strong></span></a>
64                </p>
65              </td>
66<td>
67                <p>
68                  The type of the function's argument.
69                </p>
70              </td>
71</tr>
72<tr>
73<td>
74                <p>
75                  <a class="link" href="executor_binder/executor_type.html" title="executor_binder::executor_type"><span class="bold"><strong>executor_type</strong></span></a>
76                </p>
77              </td>
78<td>
79                <p>
80                  The type of the associated executor.
81                </p>
82              </td>
83</tr>
84<tr>
85<td>
86                <p>
87                  <a class="link" href="executor_binder/first_argument_type.html" title="executor_binder::first_argument_type"><span class="bold"><strong>first_argument_type</strong></span></a>
88                </p>
89              </td>
90<td>
91                <p>
92                  The type of the function's first argument.
93                </p>
94              </td>
95</tr>
96<tr>
97<td>
98                <p>
99                  <a class="link" href="executor_binder/result_type.html" title="executor_binder::result_type"><span class="bold"><strong>result_type</strong></span></a>
100                </p>
101              </td>
102<td>
103                <p>
104                  The return type if a function.
105                </p>
106              </td>
107</tr>
108<tr>
109<td>
110                <p>
111                  <a class="link" href="executor_binder/second_argument_type.html" title="executor_binder::second_argument_type"><span class="bold"><strong>second_argument_type</strong></span></a>
112                </p>
113              </td>
114<td>
115                <p>
116                  The type of the function's second argument.
117                </p>
118              </td>
119</tr>
120<tr>
121<td>
122                <p>
123                  <a class="link" href="executor_binder/target_type.html" title="executor_binder::target_type"><span class="bold"><strong>target_type</strong></span></a>
124                </p>
125              </td>
126<td>
127                <p>
128                  The type of the target object.
129                </p>
130              </td>
131</tr>
132</tbody>
133</table></div>
134<h5>
135<a name="boost_asio.reference.executor_binder.h1"></a>
136        <span class="phrase"><a name="boost_asio.reference.executor_binder.member_functions"></a></span><a class="link" href="executor_binder.html#boost_asio.reference.executor_binder.member_functions">Member Functions</a>
137      </h5>
138<div class="informaltable"><table class="table">
139<colgroup>
140<col>
141<col>
142</colgroup>
143<thead><tr>
144<th>
145                <p>
146                  Name
147                </p>
148              </th>
149<th>
150                <p>
151                  Description
152                </p>
153              </th>
154</tr></thead>
155<tbody>
156<tr>
157<td>
158                <p>
159                  <a class="link" href="executor_binder/executor_binder.html" title="executor_binder::executor_binder"><span class="bold"><strong>executor_binder</strong></span></a> <span class="silver">[constructor]</span>
160                </p>
161              </td>
162<td>
163                <p>
164                  Construct an executor wrapper for the specified object. <br>
165                  <span class="silver"> —</span><br> Copy constructor. <br> <span class="silver"> —</span><br> Construct a copy, but specify
166                  a different executor. <br> <span class="silver"> —</span><br> Construct a copy of a different
167                  executor wrapper type. <br> <span class="silver"> —</span><br> Construct a copy of a different
168                  executor wrapper type, but specify a different executor. <br>
169                  <span class="silver"> —</span><br> Move constructor. <br> <span class="silver"> —</span><br> Move construct the target
170                  object, but specify a different executor. <br> <span class="silver"> —</span><br> Move construct
171                  from a different executor wrapper type. <br> <span class="silver"> —</span><br> Move construct
172                  from a different executor wrapper type, but specify a different
173                  executor.
174                </p>
175              </td>
176</tr>
177<tr>
178<td>
179                <p>
180                  <a class="link" href="executor_binder/get.html" title="executor_binder::get"><span class="bold"><strong>get</strong></span></a>
181                </p>
182              </td>
183<td>
184                <p>
185                  Obtain a reference to the target object.
186                </p>
187              </td>
188</tr>
189<tr>
190<td>
191                <p>
192                  <a class="link" href="executor_binder/get_executor.html" title="executor_binder::get_executor"><span class="bold"><strong>get_executor</strong></span></a>
193                </p>
194              </td>
195<td>
196                <p>
197                  Obtain the associated executor.
198                </p>
199              </td>
200</tr>
201<tr>
202<td>
203                <p>
204                  <a class="link" href="executor_binder/operator_lp__rp_.html" title="executor_binder::operator()"><span class="bold"><strong>operator()</strong></span></a>
205                </p>
206              </td>
207<td>
208              </td>
209</tr>
210<tr>
211<td>
212                <p>
213                  <a class="link" href="executor_binder/_executor_binder.html" title="executor_binder::~executor_binder"><span class="bold"><strong>~executor_binder</strong></span></a> <span class="silver">[destructor]</span>
214                </p>
215              </td>
216<td>
217                <p>
218                  Destructor.
219                </p>
220              </td>
221</tr>
222</tbody>
223</table></div>
224<h5>
225<a name="boost_asio.reference.executor_binder.h2"></a>
226        <span class="phrase"><a name="boost_asio.reference.executor_binder.requirements"></a></span><a class="link" href="executor_binder.html#boost_asio.reference.executor_binder.requirements">Requirements</a>
227      </h5>
228<p>
229        <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/bind_executor.hpp</code>
230      </p>
231<p>
232        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code>
233      </p>
234</div>
235<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
236<td align="left"></td>
237<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
238      Kohlhoff<p>
239        Distributed under the Boost Software License, Version 1.0. (See accompanying
240        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>)
241      </p>
242</div></td>
243</tr></table>
244<hr>
245<div class="spirit-nav">
246<a accesskey="p" href="executor_arg_t/executor_arg_t.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="executor_binder/argument_type.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
247</div>
248</body>
249</html>
250