From 6b0f5c0f132cc723c85701b36af3cf026faad9f2 Mon Sep 17 00:00:00 2001 From: Geng Cheng Date: Mon, 14 Apr 2025 11:29:37 +0800 Subject: [PATCH 1/2] Update containers.tex --- source/containers.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/containers.tex b/source/containers.tex index 1074f9bd43..dac7a3b908 100644 --- a/source/containers.tex +++ b/source/containers.tex @@ -10082,7 +10082,8 @@ \tcode{first} and \tcode{last}) -and no reallocations if iterators \tcode{first} and \tcode{last} are of forward, bidirectional, or random access categories. +and no reallocations if +\tcode{InputIterator} meets the requirements of \oldconcept{ForwardIterator}. It makes order $N$ calls to the copy constructor of @@ -10385,7 +10386,7 @@ \end{itemize} For the declarations taking a pair of \tcode{InputIterator}, performs at most one reallocation if -\tcode{InputItera\-tor} models \oldconcept{ForwardIterator}. +\tcode{InputItera\-tor} meets the requirements of \oldconcept{ForwardIterator}. \end{itemdescr} \indexlibrarymember{erase}{vector}% From 13d6465cf38c85a87e35041474e3ddbee9b55065 Mon Sep 17 00:00:00 2001 From: Geng Cheng Date: Mon, 14 Apr 2025 21:49:20 +0800 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Jonathan Wakely --- source/containers.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/containers.tex b/source/containers.tex index dac7a3b908..c41f5007d2 100644 --- a/source/containers.tex +++ b/source/containers.tex @@ -10083,7 +10083,7 @@ and \tcode{last}) and no reallocations if -\tcode{InputIterator} meets the requirements of \oldconcept{ForwardIterator}. +\tcode{InputIterator} meets the \oldconcept{ForwardIterator} requirements. It makes order $N$ calls to the copy constructor of @@ -10386,7 +10386,7 @@ \end{itemize} For the declarations taking a pair of \tcode{InputIterator}, performs at most one reallocation if -\tcode{InputItera\-tor} meets the requirements of \oldconcept{ForwardIterator}. +\tcode{InputItera\-tor} meets the \oldconcept{ForwardIterator} requirements. \end{itemdescr} \indexlibrarymember{erase}{vector}%