Insane_DNS/libraries/asio-1.28.1/doc/asio/reference/strand/strand.html

84 lines
7.1 KiB
HTML
Raw Permalink Normal View History

2023-10-24 21:59:30 -04:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>strand::strand</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../strand.html" title="strand">
<link rel="prev" href="running_in_this_thread.html" title="strand::running_in_this_thread">
<link rel="next" href="strand/overload1.html" title="strand::strand (1 of 6 overloads)">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="running_in_this_thread.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../strand.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="strand/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.strand.strand"></a><a class="link" href="strand.html" title="strand::strand">strand::strand</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.strand.strand"></a>
Default constructor.
</p>
<pre class="programlisting"><a class="link" href="strand/overload1.html" title="strand::strand (1 of 6 overloads)">strand</a><span class="special">();</span>
<span class="emphasis"><em>» <a class="link" href="strand/overload1.html" title="strand::strand (1 of 6 overloads)">more...</a></em></span>
</pre>
<p>
Construct a strand for the specified executor.
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a><span class="special">&gt;</span>
<span class="keyword">explicit</span> <a class="link" href="strand/overload2.html" title="strand::strand (2 of 6 overloads)">strand</a><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">Executor1</span> <span class="special">&amp;</span> <span class="identifier">e</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">constraint</span><span class="special">&lt;</span> <span class="identifier">conditional</span><span class="special">&lt;</span> <span class="special">!</span><span class="identifier">is_same</span><span class="special">&lt;</span> <span class="identifier">Executor1</span><span class="special">,</span> <span class="identifier">strand</span> <span class="special">&gt;::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">Executor1</span><span class="special">,</span> <span class="identifier">Executor</span> <span class="special">&gt;,</span> <span class="identifier">false_type</span> <span class="special">&gt;::</span><span class="identifier">type</span><span class="special">::</span><span class="identifier">value</span> <span class="special">&gt;::</span><span class="identifier">type</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="strand/overload2.html" title="strand::strand (2 of 6 overloads)">more...</a></em></span>
</pre>
<p>
Copy constructor.
</p>
<pre class="programlisting"><a class="link" href="strand/overload3.html" title="strand::strand (3 of 6 overloads)">strand</a><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">strand</span> <span class="special">&amp;</span> <span class="identifier">other</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="strand/overload3.html" title="strand::strand (3 of 6 overloads)">more...</a></em></span>
</pre>
<p>
Converting constructor.
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">class</span> <a class="link" href="../Executor1.html" title="Executor requirements">OtherExecutor</a><span class="special">&gt;</span>
<a class="link" href="strand/overload4.html" title="strand::strand (4 of 6 overloads)">strand</a><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">strand</span><span class="special">&lt;</span> <span class="identifier">OtherExecutor</span> <span class="special">&gt;</span> <span class="special">&amp;</span> <span class="identifier">other</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="strand/overload4.html" title="strand::strand (4 of 6 overloads)">more...</a></em></span>
</pre>
<p>
Move constructor.
</p>
<pre class="programlisting"><a class="link" href="strand/overload5.html" title="strand::strand (5 of 6 overloads)">strand</a><span class="special">(</span>
<span class="identifier">strand</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="strand/overload5.html" title="strand::strand (5 of 6 overloads)">more...</a></em></span>
</pre>
<p>
Converting move constructor.
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">class</span> <a class="link" href="../Executor1.html" title="Executor requirements">OtherExecutor</a><span class="special">&gt;</span>
<a class="link" href="strand/overload6.html" title="strand::strand (6 of 6 overloads)">strand</a><span class="special">(</span>
<span class="identifier">strand</span><span class="special">&lt;</span> <span class="identifier">OtherExecutor</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">);</span>
<span class="emphasis"><em>» <a class="link" href="strand/overload6.html" title="strand::strand (6 of 6 overloads)">more...</a></em></span>
</pre>
</div>
<div class="copyright-footer">Copyright © 2003-2023 Christopher M. Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="running_in_this_thread.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../strand.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="strand/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>