Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / beast / doc / html / beast / ref / boost__beast__async_base / async_base / overload1.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>async_base::async_base (1 of 3 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="../../../../index.html" title="Chapter&#160;1.&#160;Boost.Beast">
8 <link rel="up" href="../async_base.html" title="async_base::async_base">
9 <link rel="prev" href="../async_base.html" title="async_base::async_base">
10 <link rel="next" href="overload2.html" title="async_base::async_base (2 of 3 overloads)">
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="../async_base.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../async_base.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
26 <div class="titlepage"><div><div><h6 class="title">
27 <a name="beast.ref.boost__beast__async_base.async_base.overload1"></a><a class="link" href="overload1.html" title="async_base::async_base (1 of 3 overloads)">async_base::async_base
28           (1 of 3 overloads)</a>
29 </h6></div></div></div>
30 <p>
31             Constructor.
32           </p>
33 <h7><a name="beast.ref.boost__beast__async_base.async_base.overload1.h0"></a>
34             <span class="phrase"><a name="beast.ref.boost__beast__async_base.async_base.overload1.synopsis"></a></span><a class="link" href="overload1.html#beast.ref.boost__beast__async_base.async_base.overload1.synopsis">Synopsis</a>
35           </h7><pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
36     <span class="keyword">class</span> <a href="../../../../../../../../doc/html/boost_asio/reference/Handler.html" target="_top"><span class="emphasis"><em>Handler</em></span></a><span class="special">&gt;</span>
37 <span class="identifier">async_base</span><span class="special">(</span>
38     <span class="identifier">Handler</span><span class="special">&amp;&amp;</span> <span class="identifier">handler</span><span class="special">,</span>
39     <span class="identifier">Executor1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">ex1</span><span class="special">,</span>
40     <span class="identifier">Allocator</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">alloc</span> <span class="special">=</span> <span class="identifier">Allocator</span><span class="special">());</span>
41 </pre>
42 <h7><a name="beast.ref.boost__beast__async_base.async_base.overload1.h1"></a>
43             <span class="phrase"><a name="beast.ref.boost__beast__async_base.async_base.overload1.description"></a></span><a class="link" href="overload1.html#beast.ref.boost__beast__async_base.async_base.overload1.description">Description</a>
44           </h7><h7><a name="beast.ref.boost__beast__async_base.async_base.overload1.h2"></a>
45             <span class="phrase"><a name="beast.ref.boost__beast__async_base.async_base.overload1.parameters"></a></span><a class="link" href="overload1.html#beast.ref.boost__beast__async_base.async_base.overload1.parameters">Parameters</a>
46           </h7><div class="informaltable"><table class="table">
47 <colgroup>
48 <col>
49 <col>
50 </colgroup>
51 <thead><tr>
52 <th>
53                     <p>
54                       Name
55                     </p>
56                   </th>
57 <th>
58                     <p>
59                       Description
60                     </p>
61                   </th>
62 </tr></thead>
63 <tbody>
64 <tr>
65 <td>
66                     <p>
67                       <code class="computeroutput"><span class="identifier">handler</span></code>
68                     </p>
69                   </td>
70 <td>
71                     <p>
72                       The final completion handler. The type of this object must
73                       meet the requirements of <span class="emphasis"><em>CompletionHandler</em></span>.
74                       The implementation takes ownership of the handler by performing
75                       a decay-copy.
76                     </p>
77                   </td>
78 </tr>
79 <tr>
80 <td>
81                     <p>
82                       <code class="computeroutput"><span class="identifier">ex1</span></code>
83                     </p>
84                   </td>
85 <td>
86                     <p>
87                       The executor associated with the implied I/O object target
88                       of the operation. The implementation shall maintain an executor
89                       work guard for the lifetime of the operation, or until the
90                       final completion handler is invoked, whichever is shorter.
91                     </p>
92                   </td>
93 </tr>
94 <tr>
95 <td>
96                     <p>
97                       <code class="computeroutput"><span class="identifier">alloc</span></code>
98                     </p>
99                   </td>
100 <td>
101                     <p>
102                       The allocator to be associated with objects derived from this
103                       class. If <code class="computeroutput"><span class="identifier">Allocator</span></code>
104                       is default-constructible, this parameter is optional and may
105                       be omitted.
106                     </p>
107                   </td>
108 </tr>
109 </tbody>
110 </table></div>
111 </div>
112 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
113 <td align="left"></td>
114 <td align="right"><div class="copyright-footer">Copyright &#169; 2016-2019 Vinnie
115       Falco<p>
116         Distributed under the Boost Software License, Version 1.0. (See accompanying
117         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>)
118       </p>
119 </div></td>
120 </tr></table>
121 <hr>
122 <div class="spirit-nav">
123 <a accesskey="p" href="../async_base.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../async_base.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
124 </div>
125 </body>
126 </html>