Skip to content

Commit 3acb49d

Browse files
committed
[string.insert] Change "pos1" to "pos" for overloads taking one position
Also make argument names in synopsis consistent. Fixes #1338
1 parent f6159ea commit 3acb49d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/strings.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,10 +1002,10 @@
10021002
basic_string& assign(InputIterator first, InputIterator last);
10031003
basic_string& assign(initializer_list<charT>);
10041004

1005-
basic_string& insert(size_type pos1, const basic_string& str);
1005+
basic_string& insert(size_type pos, const basic_string& str);
10061006
basic_string& insert(size_type pos1, const basic_string& str,
10071007
size_type pos2, size_type n = npos);
1008-
basic_string& insert(size_type pos1, basic_string_view<charT, traits> sv);
1008+
basic_string& insert(size_type pos, basic_string_view<charT, traits> sv);
10091009
template<class T>
10101010
basic_string& insert(size_type pos1, const T& t,
10111011
size_type pos2, size_type n = npos);
@@ -2361,7 +2361,7 @@
23612361
\indexlibrarymember{insert}{basic_string}%
23622362
\begin{itemdecl}
23632363
basic_string&
2364-
insert(size_type pos1,
2364+
insert(size_type pos,
23652365
const basic_string& str);
23662366
\end{itemdecl}
23672367

@@ -2400,13 +2400,13 @@
24002400

24012401
\indexlibrarymember{insert}{basic_string}%
24022402
\begin{itemdecl}
2403-
basic_string& insert(size_type pos1, basic_string_view<charT, traits> sv);
2403+
basic_string& insert(size_type pos, basic_string_view<charT, traits> sv);
24042404
\end{itemdecl}
24052405

24062406
\begin{itemdescr}
24072407
\pnum
24082408
\effects
2409-
Equivalent to: \tcode{return insert(pos1, sv.data(), sv.size());}
2409+
Equivalent to: \tcode{return insert(pos, sv.data(), sv.size());}
24102410
\end{itemdescr}
24112411

24122412
\indexlibrarymember{insert}{basic_string}%

0 commit comments

Comments
 (0)