Skip to content

Commit 646bfb2

Browse files
authored
[container.alloc.reqmts] Better xrefs for allocator-aware containers
There are now more allocator-aware containers in the standard than when this subclause was first written, so ensure we have call outs to all relevent subclauses. The current wording for 'basic_stacktrace' also shows how containers can properly call out the allocator-aware container requirements, now that they have their own, titled subclause.
1 parent c7fb99f commit 646bfb2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

source/containers.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,8 @@
908908
\rSec3[container.alloc.reqmts]{Allocator-aware containers}
909909

910910
\pnum
911-
All of the containers defined in \ref{containers} and in~\ref{basic.string} except \tcode{array}
911+
Except for \tcode{array}, all of the containers defined in \ref{containers},
912+
\ref{stacktrace.basic}, \ref{basic.string}, and \ref{re.results}
912913
meet the additional requirements of an \defnadj{allocator-aware}{container},
913914
as described below.
914915

source/regex.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,8 +2135,8 @@
21352135
\indextext{requirements!container}%
21362136
\indextext{requirements!sequence}%
21372137
The class template \tcode{match_results} meets the requirements of an
2138-
allocator-aware container and of
2139-
a sequence container\iref{container.alloc.reqmts,sequence.reqmts}
2138+
allocator-aware container\iref{container.alloc.reqmts} and of
2139+
a sequence container\iref{container.requirements.general,sequence.reqmts}
21402140
except that only
21412141
copy assignment,
21422142
move assignment, and

source/strings.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@
23782378
the character traits requirements\iref{char.traits}.
23792379
\begin{note}
23802380
Every specialization \tcode{basic_string<charT, traits, Allocator>} is
2381-
an allocator-aware container,
2381+
an allocator-aware container\iref{container.alloc.reqmts},
23822382
but does not use the allocator's \tcode{construct} and \tcode{destroy}
23832383
member functions\iref{container.requirements.pre}.
23842384
The program is ill-formed if

0 commit comments

Comments
 (0)