Skip to content

Commit c85f24d

Browse files
tkoeppezygoloid
authored andcommitted
[string.cons] Consolidate two functions into one description
1 parent 59ca44a commit c85f24d

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

source/strings.tex

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,10 @@
12401240

12411241
\indexlibrary{\idxcode{basic_string}!constructor}%
12421242
\begin{itemdecl}
1243-
basic_string(const basic_string& str, size_type pos, const Allocator& a = Allocator());
1243+
basic_string(const basic_string& str, size_type pos,
1244+
const Allocator& a = Allocator());
1245+
basic_string(const basic_string& str, size_type pos, size_type n,
1246+
const Allocator& a = Allocator());
12441247
\end{itemdecl}
12451248

12461249
\begin{itemdescr}
@@ -1255,26 +1258,8 @@
12551258
Constructs an object of class
12561259
\tcode{basic_string}
12571260
and determines the effective length \tcode{rlen} of the initial string
1258-
value as \tcode{str.size() - pos},
1259-
as indicated in Table~\ref{tab:strings.ctr.2}.
1260-
\end{itemdescr}
1261-
1262-
\indexlibrary{\idxcode{basic_string}!constructor}%
1263-
\begin{itemdecl}
1264-
basic_string(const basic_string& str, size_type pos, size_type n,
1265-
const Allocator& a = Allocator());
1266-
\end{itemdecl}
1267-
1268-
\begin{itemdescr}
1269-
\pnum
1270-
\throws
1271-
\tcode{out_of_range} if \tcode{pos > str.size()}.
1272-
1273-
\pnum
1274-
\effects
1275-
Constructs an object of class \tcode{basic_string}
1276-
and determines the effective length \tcode{rlen} of the initial string
1277-
value as the smaller of \tcode{n} and \tcode{str.size() - pos},
1261+
value as \tcode{str.size() - pos} in the first form and
1262+
as the smaller of \tcode{str.size() - pos} and \tcode{n} in the second form,
12781263
as indicated in Table~\ref{tab:strings.ctr.2}.
12791264

12801265
\begin{libefftabvalue}

0 commit comments

Comments
 (0)