1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>execution::any_executor</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="execution__allocator_t/value.html" title="execution::allocator_t::value"> 10<link rel="next" href="execution__any_executor/any_executor.html" title="execution::any_executor::any_executor"> 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="execution__allocator_t/value.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="execution__any_executor/any_executor.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.execution__any_executor"></a><a class="link" href="execution__any_executor.html" title="execution::any_executor">execution::any_executor</a> 28</h3></div></div></div> 29<p> 30 Polymorphic executor wrapper. 31 </p> 32<pre class="programlisting">template< 33 typename... SupportableProperties> 34class any_executor 35</pre> 36<h5> 37<a name="boost_asio.reference.execution__any_executor.h0"></a> 38 <span class="phrase"><a name="boost_asio.reference.execution__any_executor.member_functions"></a></span><a class="link" href="execution__any_executor.html#boost_asio.reference.execution__any_executor.member_functions">Member 39 Functions</a> 40 </h5> 41<div class="informaltable"><table class="table"> 42<colgroup> 43<col> 44<col> 45</colgroup> 46<thead><tr> 47<th> 48 <p> 49 Name 50 </p> 51 </th> 52<th> 53 <p> 54 Description 55 </p> 56 </th> 57</tr></thead> 58<tbody> 59<tr> 60<td> 61 <p> 62 <a class="link" href="execution__any_executor/any_executor.html" title="execution::any_executor::any_executor"><span class="bold"><strong>any_executor</strong></span></a> <span class="silver">[constructor]</span> 63 </p> 64 </td> 65<td> 66 <p> 67 Default constructor. <br> <span class="silver"> —</span><br> Construct in an empty state. 68 Equivalent effects to default constructor. <br> <span class="silver"> —</span><br> Copy constructor. 69 <br> <span class="silver"> —</span><br> Move constructor. <br> <span class="silver"> —</span><br> Construct to point 70 to the same target as another any_executor. <br> <span class="silver"> —</span><br> Construct 71 a polymorphic wrapper for the specified executor. 72 </p> 73 </td> 74</tr> 75<tr> 76<td> 77 <p> 78 <a class="link" href="execution__any_executor/context.html" title="execution::any_executor::context"><span class="bold"><strong>context</strong></span></a> 79 </p> 80 </td> 81<td> 82 <p> 83 Obtain the underlying execution context. 84 </p> 85 </td> 86</tr> 87<tr> 88<td> 89 <p> 90 <a class="link" href="execution__any_executor/execute.html" title="execution::any_executor::execute"><span class="bold"><strong>execute</strong></span></a> 91 </p> 92 </td> 93<td> 94 <p> 95 Execute the function on the target executor. 96 </p> 97 </td> 98</tr> 99<tr> 100<td> 101 <p> 102 <a class="link" href="execution__any_executor/operator_bool.html" title="execution::any_executor::operator bool"><span class="bold"><strong>operator bool</strong></span></a> 103 </p> 104 </td> 105<td> 106 <p> 107 Determine whether the wrapper has a target executor. 108 </p> 109 </td> 110</tr> 111<tr> 112<td> 113 <p> 114 <a class="link" href="execution__any_executor/operator_eq_.html" title="execution::any_executor::operator="><span class="bold"><strong>operator=</strong></span></a> 115 </p> 116 </td> 117<td> 118 <p> 119 Assignment operator. <br> <span class="silver"> —</span><br> Move assignment operator. <br> 120 <span class="silver"> —</span><br> Assignment operator that sets the polymorphic wrapper to 121 the empty state. <br> <span class="silver"> —</span><br> Assignment operator to create a 122 polymorphic wrapper for the specified executor. 123 </p> 124 </td> 125</tr> 126<tr> 127<td> 128 <p> 129 <a class="link" href="execution__any_executor/prefer.html" title="execution::any_executor::prefer"><span class="bold"><strong>prefer</strong></span></a> 130 </p> 131 </td> 132<td> 133 <p> 134 Obtain a polymorphic wrapper with the specified property. 135 </p> 136 </td> 137</tr> 138<tr> 139<td> 140 <p> 141 <a class="link" href="execution__any_executor/query.html" title="execution::any_executor::query"><span class="bold"><strong>query</strong></span></a> 142 </p> 143 </td> 144<td> 145 <p> 146 Obtain the value associated with the specified property. 147 </p> 148 </td> 149</tr> 150<tr> 151<td> 152 <p> 153 <a class="link" href="execution__any_executor/require.html" title="execution::any_executor::require"><span class="bold"><strong>require</strong></span></a> 154 </p> 155 </td> 156<td> 157 <p> 158 Obtain a polymorphic wrapper with the specified property. 159 </p> 160 </td> 161</tr> 162<tr> 163<td> 164 <p> 165 <a class="link" href="execution__any_executor/swap.html" title="execution::any_executor::swap"><span class="bold"><strong>swap</strong></span></a> 166 </p> 167 </td> 168<td> 169 <p> 170 Swap targets with another polymorphic wrapper. 171 </p> 172 </td> 173</tr> 174<tr> 175<td> 176 <p> 177 <a class="link" href="execution__any_executor/target.html" title="execution::any_executor::target"><span class="bold"><strong>target</strong></span></a> 178 </p> 179 </td> 180<td> 181 <p> 182 Get a pointer to the target executor. 183 </p> 184 </td> 185</tr> 186<tr> 187<td> 188 <p> 189 <a class="link" href="execution__any_executor/target_type.html" title="execution::any_executor::target_type"><span class="bold"><strong>target_type</strong></span></a> 190 </p> 191 </td> 192<td> 193 <p> 194 Get the type of the target executor. 195 </p> 196 </td> 197</tr> 198<tr> 199<td> 200 <p> 201 <a class="link" href="execution__any_executor/_any_executor.html" title="execution::any_executor::~any_executor"><span class="bold"><strong>~any_executor</strong></span></a> <span class="silver">[destructor]</span> 202 </p> 203 </td> 204<td> 205 <p> 206 Destructor. 207 </p> 208 </td> 209</tr> 210</tbody> 211</table></div> 212<h5> 213<a name="boost_asio.reference.execution__any_executor.h1"></a> 214 <span class="phrase"><a name="boost_asio.reference.execution__any_executor.related_functions"></a></span><a class="link" href="execution__any_executor.html#boost_asio.reference.execution__any_executor.related_functions">Related 215 Functions</a> 216 </h5> 217<div class="informaltable"><table class="table"> 218<colgroup> 219<col> 220<col> 221</colgroup> 222<thead><tr> 223<th> 224 <p> 225 Name 226 </p> 227 </th> 228<th> 229 <p> 230 Description 231 </p> 232 </th> 233</tr></thead> 234<tbody> 235<tr> 236<td> 237 <p> 238 <a class="link" href="execution__any_executor/operator_not__eq_.html" title="execution::any_executor::operator!="><span class="bold"><strong>operator!=</strong></span></a> 239 </p> 240 </td> 241<td> 242 <p> 243 Inequality operator. 244 </p> 245 </td> 246</tr> 247<tr> 248<td> 249 <p> 250 <a class="link" href="execution__any_executor/operator_eq__eq_.html" title="execution::any_executor::operator=="><span class="bold"><strong>operator==</strong></span></a> 251 </p> 252 </td> 253<td> 254 <p> 255 Equality operator. 256 </p> 257 </td> 258</tr> 259</tbody> 260</table></div> 261<h5> 262<a name="boost_asio.reference.execution__any_executor.h2"></a> 263 <span class="phrase"><a name="boost_asio.reference.execution__any_executor.requirements"></a></span><a class="link" href="execution__any_executor.html#boost_asio.reference.execution__any_executor.requirements">Requirements</a> 264 </h5> 265<p> 266 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/execution/any_executor.hpp</code> 267 </p> 268<p> 269 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio/execution.hpp</code> 270 </p> 271</div> 272<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 273<td align="left"></td> 274<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 275 Kohlhoff<p> 276 Distributed under the Boost Software License, Version 1.0. (See accompanying 277 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>) 278 </p> 279</div></td> 280</tr></table> 281<hr> 282<div class="spirit-nav"> 283<a accesskey="p" href="execution__allocator_t/value.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="execution__any_executor/any_executor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 284</div> 285</body> 286</html> 287