• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>basic_waitable_timer::basic_waitable_timer (8 of 8 overloads)</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="../basic_waitable_timer.html" title="basic_waitable_timer::basic_waitable_timer">
9<link rel="prev" href="overload7.html" title="basic_waitable_timer::basic_waitable_timer (7 of 8 overloads)">
10<link rel="next" href="../cancel.html" title="basic_waitable_timer::cancel">
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="overload7.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_waitable_timer.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="../cancel.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload8"></a><a class="link" href="overload8.html" title="basic_waitable_timer::basic_waitable_timer (8 of 8 overloads)">basic_waitable_timer::basic_waitable_timer
28          (8 of 8 overloads)</a>
29</h5></div></div></div>
30<p>
31            Move-construct a <a class="link" href="../../basic_waitable_timer.html" title="basic_waitable_timer"><code class="computeroutput">basic_waitable_timer</code></a>
32            from another.
33          </p>
34<pre class="programlisting">template&lt;
35    typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>&gt;
36basic_waitable_timer(
37    basic_waitable_timer&lt; Clock, WaitTraits, Executor1 &gt; &amp;&amp; other,
38    typename enable_if&lt; is_convertible&lt; Executor1, Executor &gt;::value &gt;::type *  = 0);
39</pre>
40<p>
41            This constructor moves a timer from one object to another.
42          </p>
43<h6>
44<a name="boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload8.h0"></a>
45            <span class="phrase"><a name="boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload8.parameters"></a></span><a class="link" href="overload8.html#boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload8.parameters">Parameters</a>
46          </h6>
47<div class="variablelist">
48<p class="title"><b></b></p>
49<dl class="variablelist">
50<dt><span class="term">other</span></dt>
51<dd><p>
52                  The other <a class="link" href="../../basic_waitable_timer.html" title="basic_waitable_timer"><code class="computeroutput">basic_waitable_timer</code></a>
53                  object from which the move will occur.
54                </p></dd>
55</dl>
56</div>
57<h6>
58<a name="boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload8.h1"></a>
59            <span class="phrase"><a name="boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload8.remarks"></a></span><a class="link" href="overload8.html#boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload8.remarks">Remarks</a>
60          </h6>
61<p>
62            Following the move, the moved-from object is in the same state as if
63            constructed using the <code class="computeroutput">basic_waitable_timer(const executor_type&amp;)</code>
64            constructor.
65          </p>
66</div>
67<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
68<td align="left"></td>
69<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
70      Kohlhoff<p>
71        Distributed under the Boost Software License, Version 1.0. (See accompanying
72        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>)
73      </p>
74</div></td>
75</tr></table>
76<hr>
77<div class="spirit-nav">
78<a accesskey="p" href="overload7.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_waitable_timer.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="../cancel.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
79</div>
80</body>
81</html>
82