1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>basic_multi_buffer::basic_multi_buffer (10 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="overload9.html" title="basic_multi_buffer::basic_multi_buffer (9 of 10 overloads)"> 10<link rel="next" href="../operator_eq_.html" title="basic_multi_buffer::operator="> 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="overload9.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="../operator_eq_.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.overload10"></a><a class="link" href="overload10.html" title="basic_multi_buffer::basic_multi_buffer (10 of 10 overloads)">basic_multi_buffer::basic_multi_buffer 28 (10 of 10 overloads)</a> 29</h6></div></div></div> 30<p> 31 Copy Constructor. 32 </p> 33<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.h0"></a> 34 <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.synopsis"></a></span><a class="link" href="overload10.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.synopsis">Synopsis</a> 35 </h7><pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> 36 <span class="keyword">class</span> <span class="identifier">OtherAlloc</span><span class="special">></span> 37<span class="identifier">basic_multi_buffer</span><span class="special">(</span> 38 <span class="identifier">basic_multi_buffer</span><span class="special"><</span> <span class="identifier">OtherAlloc</span> <span class="special">></span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">other</span><span class="special">,</span> 39 <span class="identifier">allocator_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">alloc</span><span class="special">);</span> 40</pre> 41<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.h1"></a> 42 <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.description"></a></span><a class="link" href="overload10.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.description">Description</a> 43 </h7><p> 44 This container is constructed with the contents of <code class="computeroutput"><span class="identifier">other</span></code> 45 using copy semantics. The maximum size will be the same as the copied 46 object. 47 </p> 48<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.h2"></a> 49 <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.parameters"></a></span><a class="link" href="overload10.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.parameters">Parameters</a> 50 </h7><div class="informaltable"><table class="table"> 51<colgroup> 52<col> 53<col> 54</colgroup> 55<thead><tr> 56<th> 57 <p> 58 Name 59 </p> 60 </th> 61<th> 62 <p> 63 Description 64 </p> 65 </th> 66</tr></thead> 67<tbody> 68<tr> 69<td> 70 <p> 71 <code class="computeroutput"><span class="identifier">other</span></code> 72 </p> 73 </td> 74<td> 75 <p> 76 The object to copy from. 77 </p> 78 </td> 79</tr> 80<tr> 81<td> 82 <p> 83 <code class="computeroutput"><span class="identifier">alloc</span></code> 84 </p> 85 </td> 86<td> 87 <p> 88 The allocator to use for the object. 89 </p> 90 </td> 91</tr> 92</tbody> 93</table></div> 94<h7><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.h3"></a> 95 <span class="phrase"><a name="beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.exceptions"></a></span><a class="link" href="overload10.html#beast.ref.boost__beast__basic_multi_buffer.basic_multi_buffer.overload10.exceptions">Exceptions</a> 96 </h7><div class="informaltable"><table class="table"> 97<colgroup> 98<col> 99<col> 100</colgroup> 101<thead><tr> 102<th> 103 <p> 104 Type 105 </p> 106 </th> 107<th> 108 <p> 109 Thrown On 110 </p> 111 </th> 112</tr></thead> 113<tbody><tr> 114<td> 115 <p> 116 <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">length_error</span></code> 117 </p> 118 </td> 119<td> 120 <p> 121 if <code class="computeroutput"><span class="identifier">other</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code> 122 exceeds the maximum allocation size of <code class="computeroutput"><span class="identifier">alloc</span></code>. 123 </p> 124 </td> 125</tr></tbody> 126</table></div> 127</div> 128<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 129<td align="left"></td> 130<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie 131 Falco<p> 132 Distributed under the Boost Software License, Version 1.0. (See accompanying 133 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>) 134 </p> 135</div></td> 136</tr></table> 137<hr> 138<div class="spirit-nav"> 139<a accesskey="p" href="overload9.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="../operator_eq_.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 140</div> 141</body> 142</html> 143