Skip to content

Commit 10084c9

Browse files
jensmaurerzygoloid
authored andcommitted
P1462R1 Mandating the Standard Library: Clause 20 - Strings library
1 parent 422e132 commit 10084c9

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

source/strings.tex

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224

225225
\begin{itemdescr}
226226
\pnum
227-
\requires
227+
\expects
228228
\tcode{state_type}
229229
shall meet the
230230
\oldconcept{Destructible} (\tref{destructible}),
@@ -2276,18 +2276,23 @@
22762276
\end{itemdecl}
22772277

22782278
\begin{itemdescr}
2279+
\pnum
2280+
\effects
2281+
Inserts \tcode{n} copies of \tcode{c} before the character at position \tcode{pos}
2282+
if \tcode{pos < size()},
2283+
or otherwise at the end of the string.
2284+
2285+
\pnum
2286+
\returns
2287+
\tcode{*this}
2288+
22792289
\pnum
22802290
\throws
22812291
\begin{itemize}
22822292
\item \tcode{out_of_range} if \tcode{pos > size()},
22832293
\item \tcode{length_error} if \tcode{n > max_size() - size()}, or
22842294
\item any exceptions thrown by \tcode{allocator_traits<Allocator>::allocate}.
22852295
\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.
22912296
\end{itemdescr}
22922297

22932298
\indexlibrarymember{insert}{basic_string}%
@@ -4092,10 +4097,6 @@
40924097
\end{itemdecl}
40934098

40944099
\begin{itemdescr}
4095-
\pnum
4096-
\effects
4097-
Constructs an empty \tcode{basic_string_view}.
4098-
40994100
\pnum
41004101
\ensures
41014102
\tcode{size_ == 0} and \tcode{data_ == nullptr}.

0 commit comments

Comments
 (0)