1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>execution::executor_index</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__execute.html" title="execution::execute"> 10<link rel="next" href="execution__executor_index/type.html" title="execution::executor_index::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="execution__execute.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__executor_index/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.execution__executor_index"></a><a class="link" href="execution__executor_index.html" title="execution::executor_index">execution::executor_index</a> 28</h3></div></div></div> 29<p> 30 The <a class="link" href="execution__executor_index.html" title="execution::executor_index"><code class="computeroutput">execution::executor_index</code></a> 31 trait detects the type used by an executor to represent an index within a 32 bulk operation. 33 </p> 34<pre class="programlisting">template< 35 typename T> 36struct executor_index 37</pre> 38<h5> 39<a name="boost_asio.reference.execution__executor_index.h0"></a> 40 <span class="phrase"><a name="boost_asio.reference.execution__executor_index.types"></a></span><a class="link" href="execution__executor_index.html#boost_asio.reference.execution__executor_index.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><tr> 60<td> 61 <p> 62 <a class="link" href="execution__executor_index/type.html" title="execution::executor_index::type"><span class="bold"><strong>type</strong></span></a> 63 </p> 64 </td> 65<td> 66 <p> 67 T::index_type if T::index_type is valid, otherwise executor_shape_t<T>. 68 </p> 69 </td> 70</tr></tbody> 71</table></div> 72<p> 73 Class template <code class="computeroutput">executor_index</code> is a type trait with a nested 74 type alias <code class="computeroutput">type</code> whose type is <code class="computeroutput">T::index_type</code> if 75 <code class="computeroutput">T::index_type</code> is valid, otherwise <code class="computeroutput">executor_shape_t<T></code>. 76 </p> 77<h5> 78<a name="boost_asio.reference.execution__executor_index.h1"></a> 79 <span class="phrase"><a name="boost_asio.reference.execution__executor_index.requirements"></a></span><a class="link" href="execution__executor_index.html#boost_asio.reference.execution__executor_index.requirements">Requirements</a> 80 </h5> 81<p> 82 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/execution/executor.hpp</code> 83 </p> 84<p> 85 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio/execution.hpp</code> 86 </p> 87</div> 88<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 89<td align="left"></td> 90<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 91 Kohlhoff<p> 92 Distributed under the Boost Software License, Version 1.0. (See accompanying 93 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>) 94 </p> 95</div></td> 96</tr></table> 97<hr> 98<div class="spirit-nav"> 99<a accesskey="p" href="execution__execute.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__executor_index/type.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 100</div> 101</body> 102</html> 103