Skip to content

Commit 099bbe9

Browse files
authored
Merge 2019-02 LWG Motion 9
P1462R1 Mandating the Standard Library: Clause 20 - Strings library Fixes #2700.
2 parents 422e132 + de76c7d commit 099bbe9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source/strings.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,8 @@
224224

225225
\begin{itemdescr}
226226
\pnum
227-
\requires
228-
\tcode{state_type}
229-
shall meet the
227+
\expects
228+
\tcode{state_type} meets the
230229
\oldconcept{Destructible} (\tref{destructible}),
231230
\oldconcept{CopyAssignable} (\tref{copyassignable}),
232231
\oldconcept{CopyConstructible} (\tref{copyconstructible}), and
@@ -2276,18 +2275,23 @@
22762275
\end{itemdecl}
22772276

22782277
\begin{itemdescr}
2278+
\pnum
2279+
\effects
2280+
Inserts \tcode{n} copies of \tcode{c} before the character at position \tcode{pos}
2281+
if \tcode{pos < size()},
2282+
or otherwise at the end of the string.
2283+
2284+
\pnum
2285+
\returns
2286+
\tcode{*this}
2287+
22792288
\pnum
22802289
\throws
22812290
\begin{itemize}
22822291
\item \tcode{out_of_range} if \tcode{pos > size()},
22832292
\item \tcode{length_error} if \tcode{n > max_size() - size()}, or
22842293
\item any exceptions thrown by \tcode{allocator_traits<Allocator>::allocate}.
22852294
\end{itemize}
2286-
\pnum
2287-
\effects
2288-
Inserts \tcode{n} copies of \tcode{c} before the character at position \tcode{pos}
2289-
if \tcode{pos < size()},
2290-
or otherwise at the end of the string.
22912295
\end{itemdescr}
22922296

22932297
\indexlibrarymember{insert}{basic_string}%
@@ -4092,10 +4096,6 @@
40924096
\end{itemdecl}
40934097

40944098
\begin{itemdescr}
4095-
\pnum
4096-
\effects
4097-
Constructs an empty \tcode{basic_string_view}.
4098-
40994099
\pnum
41004100
\ensures
41014101
\tcode{size_ == 0} and \tcode{data_ == nullptr}.

0 commit comments

Comments
 (0)