1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>basic_static_string::append (1 of 9 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="Boost.StaticString"> 8<link rel="up" href="../append.html" title="basic_static_string::append"> 9<link rel="prev" href="../append.html" title="basic_static_string::append"> 10<link rel="next" href="overload2.html" title="basic_static_string::append (2 of 9 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="../append.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../append.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><h5 class="title"> 27<a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1"></a><a class="link" href="overload1.html" title="basic_static_string::append (1 of 9 overloads)">basic_static_string::append 28 (1 of 9 overloads)</a> 29</h5></div></div></div> 30<p> 31 Append to the string. 32 </p> 33<h6> 34<a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.h0"></a> 35 <span class="phrase"><a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.synopsis"></a></span><a class="link" href="overload1.html#static_string.ref.boost__static_strings__basic_static_string.append.overload1.synopsis">Synopsis</a> 36 </h6> 37<pre class="programlisting"><span class="keyword">constexpr</span> <span class="identifier">basic_static_string</span><span class="special">&</span> 38<span class="identifier">append</span><span class="special">(</span> 39 <span class="identifier">size_type</span> <span class="identifier">count</span><span class="special">,</span> 40 <span class="identifier">value_type</span> <span class="identifier">ch</span><span class="special">);</span> 41</pre> 42<h6> 43<a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.h1"></a> 44 <span class="phrase"><a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.description"></a></span><a class="link" href="overload1.html#static_string.ref.boost__static_strings__basic_static_string.append.overload1.description">Description</a> 45 </h6> 46<p> 47 Appends <code class="computeroutput"><span class="identifier">count</span></code> copies 48 of <code class="computeroutput"><span class="identifier">ch</span></code> to the end of the 49 string. 50 </p> 51<h6> 52<a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.h2"></a> 53 <span class="phrase"><a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.exception_safety"></a></span><a class="link" href="overload1.html#static_string.ref.boost__static_strings__basic_static_string.append.overload1.exception_safety">Exception 54 Safety</a> 55 </h6> 56<p> 57 Strong guarantee. 58 </p> 59<h6> 60<a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.h3"></a> 61 <span class="phrase"><a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.return_value"></a></span><a class="link" href="overload1.html#static_string.ref.boost__static_strings__basic_static_string.append.overload1.return_value">Return 62 Value</a> 63 </h6> 64<p> 65 <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> 66 </p> 67<h6> 68<a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.h4"></a> 69 <span class="phrase"><a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.parameters"></a></span><a class="link" href="overload1.html#static_string.ref.boost__static_strings__basic_static_string.append.overload1.parameters">Parameters</a> 70 </h6> 71<div class="informaltable"><table class="table"> 72<colgroup> 73<col> 74<col> 75</colgroup> 76<thead><tr> 77<th> 78 <p> 79 Name 80 </p> 81 </th> 82<th> 83 <p> 84 Description 85 </p> 86 </th> 87</tr></thead> 88<tbody> 89<tr> 90<td> 91 <p> 92 <code class="computeroutput"><span class="identifier">count</span></code> 93 </p> 94 </td> 95<td> 96 <p> 97 The number of characters to append. 98 </p> 99 </td> 100</tr> 101<tr> 102<td> 103 <p> 104 <code class="computeroutput"><span class="identifier">ch</span></code> 105 </p> 106 </td> 107<td> 108 <p> 109 The character to append. 110 </p> 111 </td> 112</tr> 113</tbody> 114</table></div> 115<h6> 116<a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.h5"></a> 117 <span class="phrase"><a name="static_string.ref.boost__static_strings__basic_static_string.append.overload1.exceptions"></a></span><a class="link" href="overload1.html#static_string.ref.boost__static_strings__basic_static_string.append.overload1.exceptions">Exceptions</a> 118 </h6> 119<div class="informaltable"><table class="table"> 120<colgroup> 121<col> 122<col> 123</colgroup> 124<thead><tr> 125<th> 126 <p> 127 Type 128 </p> 129 </th> 130<th> 131 <p> 132 Thrown On 133 </p> 134 </th> 135</tr></thead> 136<tbody><tr> 137<td> 138 <p> 139 <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">length_error</span></code> 140 </p> 141 </td> 142<td> 143 <p> 144 <a class="link" href="../size.html" title="basic_static_string::size"><code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code></a> 145 + count > <a class="link" href="../max_size.html" title="basic_static_string::max_size"><code class="computeroutput"><span class="identifier">max_size</span><span class="special">()</span></code></a> 146 </p> 147 </td> 148</tr></tbody> 149</table></div> 150</div> 151<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 152<td align="left"></td> 153<td align="right"><div class="copyright-footer">Copyright © 2019, 2020 Krystian Stasiowski<br>Copyright © 2016-2019 Vinnie 154 Falco<p> 155 Distributed under the Boost Software License, Version 1.0. (See accompanying 156 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>) 157 </p> 158</div></td> 159</tr></table> 160<hr> 161<div class="spirit-nav"> 162<a accesskey="p" href="../append.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../append.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> 163</div> 164</body> 165</html> 166