• 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_multi_buffer::basic_multi_buffer (6 of 10 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 1. Boost.Beast">
8<link rel="up" href="../basic_multi_buffer.html" title="basic_multi_buffer::basic_multi_buffer">
9<link rel="prev" href="overload5.html" title="basic_multi_buffer::basic_multi_buffer (5 of 10 overloads)">
10<link rel="next" href="overload7.html" title="basic_multi_buffer::basic_multi_buffer (7 of 10 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="overload5.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_multi_buffer.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="overload7.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__basic_multi_buffer.basic_multi_buffer.overload6"></a><a class="link" href="overload6.html" title="basic_multi_buffer::basic_multi_buffer (6 of 10 overloads)">basic_multi_buffer::basic_multi_buffer
28          (6 of 10 overloads)</a>
29</h6></div></div></div>
30<p>
31            Move Constructor.
32          </p>
33<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.h0"></a>
34            <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.synopsis"></a></span><a class="link" href="overload6.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.synopsis">Synopsis</a>
35          </h7><pre class="programlisting"><span class="identifier">basic_multi_buffer</span><span class="special">(</span>
36    <span class="identifier">basic_multi_buffer</span><span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">,</span>
37    <span class="identifier">Allocator</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">alloc</span><span class="special">);</span>
38</pre>
39<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.h1"></a>
40            <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.description"></a></span><a class="link" href="overload6.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.description">Description</a>
41          </h7><p>
42            Using <code class="computeroutput"><span class="identifier">alloc</span></code> as the allocator
43            for the new container, the contents of <code class="computeroutput"><span class="identifier">other</span></code>
44            are moved. If <code class="computeroutput"><span class="identifier">alloc</span> <span class="special">!=</span> <span class="identifier">other</span><span class="special">.</span><span class="identifier">get_allocator</span><span class="special">()</span></code>, this results in a copy. The maximum
45            size will be the same as the moved-from object. Buffer sequences previously
46            obtained from <code class="computeroutput"><span class="identifier">other</span></code> using
47            <a class="link" href="../data/overload1.html" title="basic_multi_buffer::data (1 of 2 overloads)"><code class="computeroutput"><span class="identifier">data</span></code></a> or <a class="link" href="../prepare.html" title="basic_multi_buffer::prepare"><code class="computeroutput"><span class="identifier">prepare</span></code></a> become invalid after
48            the move.
49          </p>
50<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.h2"></a>
51            <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.parameters"></a></span><a class="link" href="overload6.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.parameters">Parameters</a>
52          </h7><div class="informaltable"><table class="table">
53<colgroup>
54<col>
55<col>
56</colgroup>
57<thead><tr>
58<th>
59                    <p>
60                      Name
61                    </p>
62                  </th>
63<th>
64                    <p>
65                      Description
66                    </p>
67                  </th>
68</tr></thead>
69<tbody>
70<tr>
71<td>
72                    <p>
73                      <code class="computeroutput"><span class="identifier">other</span></code>
74                    </p>
75                  </td>
76<td>
77                    <p>
78                      The object to move from. After the move, the moved-from object
79                      will have zero capacity, zero readable bytes, and zero writable
80                      bytes.
81                    </p>
82                  </td>
83</tr>
84<tr>
85<td>
86                    <p>
87                      <code class="computeroutput"><span class="identifier">alloc</span></code>
88                    </p>
89                  </td>
90<td>
91                    <p>
92                      The allocator to use for the object.
93                    </p>
94                  </td>
95</tr>
96</tbody>
97</table></div>
98<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.h3"></a>
99            <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.exceptions"></a></span><a class="link" href="overload6.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload6.exceptions">Exceptions</a>
100          </h7><div class="informaltable"><table class="table">
101<colgroup>
102<col>
103<col>
104</colgroup>
105<thead><tr>
106<th>
107                    <p>
108                      Type
109                    </p>
110                  </th>
111<th>
112                    <p>
113                      Thrown On
114                    </p>
115                  </th>
116</tr></thead>
117<tbody><tr>
118<td>
119                    <p>
120                      <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">length_error</span></code>
121                    </p>
122                  </td>
123<td>
124                    <p>
125                      if <code class="computeroutput"><span class="identifier">other</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>
126                      exceeds the maximum allocation size of <code class="computeroutput"><span class="identifier">alloc</span></code>.
127                    </p>
128                  </td>
129</tr></tbody>
130</table></div>
131</div>
132<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
133<td align="left"></td>
134<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
135      Falco<p>
136        Distributed under the Boost Software License, Version 1.0. (See accompanying
137        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>)
138      </p>
139</div></td>
140</tr></table>
141<hr>
142<div class="spirit-nav">
143<a accesskey="p" href="overload5.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_multi_buffer.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="overload7.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
144</div>
145</body>
146</html>
147