From cb985807a79db79e4eb7888b67dfb354eba72365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Sat, 25 Mar 2017 16:20:40 +0000 Subject: [PATCH] [string.cons] Consolidate two functions into one description --- source/strings.tex | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/source/strings.tex b/source/strings.tex index 4a0bfb8102..ff905ff8d8 100644 --- a/source/strings.tex +++ b/source/strings.tex @@ -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} @@ -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}