1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Execution context requirements</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="EndpointSequence.html" title="Endpoint sequence requirements"> 10<link rel="next" href="Executor1.html" title="Executor requirements"> 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="EndpointSequence.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="Executor1.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.ExecutionContext"></a><a class="link" href="ExecutionContext.html" title="Execution context requirements">Execution context 28 requirements</a> 29</h3></div></div></div> 30<p> 31 A type <code class="computeroutput">X</code> meets the <code class="computeroutput">ExecutionContext</code> requirements 32 if it is publicly and unambiguously derived from <code class="computeroutput">execution_context</code>, 33 and satisfies the additional requirements listed below. 34 </p> 35<p> 36 In the table below, <code class="computeroutput">x</code> denotes a value of type <code class="computeroutput">X</code>. 37 </p> 38<div class="table"> 39<a name="boost_asio.reference.ExecutionContext.t0"></a><p class="title"><b>Table 14. ExecutionContext requirements</b></p> 40<div class="table-contents"><table class="table" summary="ExecutionContext requirements"> 41<colgroup> 42<col> 43<col> 44<col> 45</colgroup> 46<thead><tr> 47<th> 48 <p> 49 expression 50 </p> 51 </th> 52<th> 53 <p> 54 return type 55 </p> 56 </th> 57<th> 58 <p> 59 assertion/note<br> pre/post-condition 60 </p> 61 </th> 62</tr></thead> 63<tbody> 64<tr> 65<td> 66 <p> 67 <code class="computeroutput">X::executor_type</code> 68 </p> 69 </td> 70<td> 71 <p> 72 type meeting <a class="link" href="Executor1.html" title="Executor requirements"><code class="computeroutput">Executor</code></a> 73 requirements 74 </p> 75 </td> 76<td> 77 </td> 78</tr> 79<tr> 80<td> 81 <p> 82 <code class="computeroutput">x.~X()</code> 83 </p> 84 </td> 85<td> 86 </td> 87<td> 88 <p> 89 Destroys all unexecuted function objects that were submitted via 90 an executor object that is associated with the execution context. 91 </p> 92 </td> 93</tr> 94<tr> 95<td> 96 <p> 97 <code class="computeroutput">x.get_executor()</code> 98 </p> 99 </td> 100<td> 101 <p> 102 <code class="computeroutput">X::executor_type</code> 103 </p> 104 </td> 105<td> 106 <p> 107 Returns an executor object that is associated with the execution 108 context. 109 </p> 110 </td> 111</tr> 112</tbody> 113</table></div> 114</div> 115<br class="table-break"> 116</div> 117<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 118<td align="left"></td> 119<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 120 Kohlhoff<p> 121 Distributed under the Boost Software License, Version 1.0. (See accompanying 122 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>) 123 </p> 124</div></td> 125</tr></table> 126<hr> 127<div class="spirit-nav"> 128<a accesskey="p" href="EndpointSequence.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="Executor1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 129</div> 130</body> 131</html> 132