Skip to content

[string.cons] Consolidate two functions into one description #1577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 6 additions & 21 deletions source/strings.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,10 @@

\indexlibrary{\idxcode{basic_string}!constructor}%
\begin{itemdecl}
basic_string(const basic_string& str, size_type pos, const Allocator& a = Allocator());
basic_string(const basic_string& str, size_type pos,
const Allocator& a = Allocator());
basic_string(const basic_string& str, size_type pos, size_type n,
const Allocator& a = Allocator());
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1255,26 +1258,8 @@
Constructs an object of class
\tcode{basic_string}
and determines the effective length \tcode{rlen} of the initial string
value as \tcode{str.size() - pos},
as indicated in Table~\ref{tab:strings.ctr.2}.
\end{itemdescr}

\indexlibrary{\idxcode{basic_string}!constructor}%
\begin{itemdecl}
basic_string(const basic_string& str, size_type pos, size_type n,
const Allocator& a = Allocator());
\end{itemdecl}

\begin{itemdescr}
\pnum
\throws
\tcode{out_of_range} if \tcode{pos > str.size()}.

\pnum
\effects
Constructs an object of class \tcode{basic_string}
and determines the effective length \tcode{rlen} of the initial string
value as the smaller of \tcode{n} and \tcode{str.size() - pos},
value as \tcode{str.size() - pos} in the first form and
as the smaller of \tcode{str.size() - pos} and \tcode{n} in the second form,
as indicated in Table~\ref{tab:strings.ctr.2}.

\begin{libefftabvalue}
Expand Down