Skip to content

Commit 739c4d4

Browse files
jensmaurerzygoloid
authored andcommitted
[lib] Replace 'this subclause' with numbered subclause references.
1 parent abf6868 commit 739c4d4

File tree

9 files changed

+28
-29
lines changed

9 files changed

+28
-29
lines changed

source/concepts.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
\rSec2[concepts.lang.general]{General}
272272

273273
\pnum
274-
This subclause contains the definition of concepts corresponding to language
274+
Subclause \ref{concepts.lang} contains the definition of concepts corresponding to language
275275
features. These concepts express relationships between types, type
276276
classifications, and fundamental type properties.
277277

@@ -814,7 +814,7 @@
814814
\rSec2[concepts.compare.general]{General}
815815

816816
\pnum
817-
This subclause describes concepts that establish relationships and orderings
817+
Subclause \ref{concepts.compare} describes concepts that establish relationships and orderings
818818
on values of possibly differing object types.
819819

820820
\rSec2[concept.boolean]{Concept \cname{boolean}}
@@ -1072,7 +1072,7 @@
10721072
\rSec2[concepts.callable.general]{General}
10731073

10741074
\pnum
1075-
The concepts in this subclause describe the requirements on function
1075+
The concepts in subclause \ref{concepts.callable} describe the requirements on function
10761076
objects\iref{function.objects} and their arguments.
10771077

10781078
\rSec2[concept.invocable]{Concept \cname{invocable}}

source/containers.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7949,7 +7949,7 @@
79497949
An \tcode{unordered_map} meets all of the requirements of a container, of an unordered associative container, and of an allocator-aware container (\tref{container.alloc.req}). It provides the operations described in the preceding requirements table for unique keys; that is, an \tcode{unordered_map} supports the \tcode{a_uniq} operations in that table, not the \tcode{a_eq} operations. For an \tcode{unordered_map<Key, T>} the \tcode{key type} is \tcode{Key}, the mapped type is \tcode{T}, and the value type is \tcode{pair<const Key, T>}.
79507950

79517951
\pnum
7952-
This subclause only describes operations on \tcode{unordered_map} that
7952+
Subclause~\ref{unord.map} only describes operations on \tcode{unordered_map} that
79537953
are not described in one of the requirement tables, or for which there
79547954
is additional semantic information.
79557955

@@ -8548,7 +8548,7 @@
85488548
mapped type is \tcode{T}, and the value type is \tcode{pair<const Key, T>}.
85498549

85508550
\pnum
8551-
This subclause only describes operations on \tcode{unordered_multimap}
8551+
Subclause~\ref{unord.multimap} only describes operations on \tcode{unordered_multimap}
85528552
that are not described in one of the requirement tables, or for which
85538553
there is additional semantic information.
85548554

@@ -8919,7 +8919,7 @@
89198919
An \tcode{unordered_set} meets all of the requirements of a container, of an unordered associative container, and of an allocator-aware container (\tref{container.alloc.req}). It provides the operations described in the preceding requirements table for unique keys; that is, an \tcode{unordered_set} supports the \tcode{a_uniq} operations in that table, not the \tcode{a_eq} operations. For an \tcode{unordered_set<Key>} the \tcode{key type} and the value type are both \tcode{Key}. The \tcode{iterator} and \tcode{const_iterator} types are both constant iterator types. It is unspecified whether they are the same type.
89208920

89218921
\pnum
8922-
This subclause only describes operations on \tcode{unordered_set} that
8922+
Subclause~\ref{unord.set} only describes operations on \tcode{unordered_set} that
89238923
are not described in one of the requirement tables, or for which there
89248924
is additional semantic information.
89258925

@@ -9248,7 +9248,7 @@
92489248
constant iterator types. It is unspecified whether they are the same type.
92499249

92509250
\pnum
9251-
This subclause only describes operations on \tcode{unordered_multiset} that
9251+
Subclause~\ref{unord.multiset} only describes operations on \tcode{unordered_multiset} that
92529252
are not described in one of the requirement tables, or for which there
92539253
is additional semantic information.
92549254

source/diagnostics.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,7 @@
829829
to identify the source and encoding of a particular category of error code.
830830
Classes may be derived from \tcode{error_category} to support
831831
categories of errors in addition to those defined in this document.
832-
Such classes shall behave as specified in this
833-
subclause~\ref{syserr.errcat}.
832+
Such classes shall behave as specified in subclause~\ref{syserr.errcat}.
834833
\begin{note}
835834
\tcode{error_category} objects are
836835
passed by reference, and two such objects

source/iostreams.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9183,7 +9183,7 @@
91839183
\end{note}
91849184

91859185
\pnum
9186-
In this subclause, member functions taking arguments of \tcode{const filesystem::path::value_type*}
9186+
In subclause~\ref{file.streams}, member functions taking arguments of \tcode{const filesystem::path::value_type*}
91879187
are only be provided on systems where \tcode{filesystem::path::value_type}\iref{fs.class.path} is not \tcode{char}.
91889188
\begin{note}
91899189
These functions enable class \tcode{path} support for systems with a wide native path character type, such as \tcode{wchar_t}.
@@ -11265,7 +11265,7 @@
1126511265
\rSec2[fs.general]{General}
1126611266

1126711267
\pnum
11268-
This subclause describes operations on file systems and their components, such as paths,
11268+
Subclause~\ref{filesystems} describes operations on file systems and their components, such as paths,
1126911269
regular files, and directories.
1127011270

1127111271
\pnum
@@ -11374,7 +11374,7 @@
1137411374
when multiple threads, processes, or computers interleave access and
1137511375
modification of
1137611376
the same object within a file system.
11377-
Behavior is undefined if calls to functions provided by this subclause introduce a file system race.
11377+
Behavior is undefined if calls to functions provided by subclause~\ref{fs.race.behavior} introduce a file system race.
1137811378

1137911379
\pnum
1138011380
If the possibility of a file system race would make it unreliable for a
@@ -11389,7 +11389,7 @@
1138911389
\rSec2[fs.norm.ref]{Normative references}
1139011390

1139111391
\pnum
11392-
This subclause mentions commercially
11392+
Subclause~\ref{filesystems} mentions commercially
1139311393
available operating systems for purposes of exposition.\footnote{
1139411394
POSIX\textregistered\ is a registered trademark of The IEEE\@.
1139511395
Windows\textregistered\ is a registered trademark of Microsoft Corporation.
@@ -11401,7 +11401,7 @@
1140111401
\rSec2[fs.req]{Requirements}
1140211402

1140311403
\pnum
11404-
Throughout this subclause, \tcode{char}, \tcode{wchar_t}, \tcode{char8_t},
11404+
Throughout subclause~\ref{filesystems}, \tcode{char}, \tcode{wchar_t}, \tcode{char8_t},
1140511405
\tcode{char16_t}, and \tcode{char32_t} are collectively called
1140611406
\defnx{encoded character types}{encoded character type}.
1140711407

@@ -11431,8 +11431,8 @@
1143111431
\rSec3[fs.req.namespace]{Namespaces and headers}
1143211432

1143311433
\pnum
11434-
Unless otherwise specified, references to entities described in this
11435-
subclause are assumed to be qualified with \tcode{::std::filesystem::}.
11434+
Unless otherwise specified, references to entities described in
11435+
subclause~\ref{filesystems} are assumed to be qualified with \tcode{::std::filesystem::}.
1143611436

1143711437
\rSec2[fs.filesystem.syn]{Header \tcode{<filesystem>} synopsis}
1143811438

@@ -13596,8 +13596,8 @@
1359613596
\end{codeblock}
1359713597
\pnum
1359813598
The class \tcode{filesystem_error} defines the type of
13599-
objects thrown as exceptions to report file system errors from functions described in this
13600-
subclause.
13599+
objects thrown as exceptions to report file system errors from functions described in
13600+
subclause~\ref{filesystems}.
1360113601

1360213602
\rSec3[fs.filesystem.error.members]{Members}
1360313603

source/ranges.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@
11321132
\rSec2[range.utility.helpers]{Helper concepts}
11331133

11341134
\pnum
1135-
Many of the types in this subclause are specified in terms of
1135+
Many of the types in subclause~\ref{range.utility} are specified in terms of
11361136
the following exposition-only concepts:
11371137

11381138
\begin{codeblock}

source/regex.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2556,7 +2556,7 @@
25562556

25572557
\rSec2[re.except]{Exceptions}
25582558
\pnum
2559-
The algorithms described in this subclause may throw an exception
2559+
The algorithms described in subclause~\ref{re.alg} may throw an exception
25602560
of type \tcode{regex_error}. If such an exception \tcode{e} is thrown,
25612561
\tcode{e.code()} shall return either \tcode{regex_constants::error_complexity}
25622562
or \tcode{regex_constants::error_stack}.

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4079,7 +4079,7 @@
40794079
an argument other than a literal \tcode{0} is undefined.
40804080

40814081
\pnum
4082-
For the purposes of this subclause,
4082+
For the purposes of subclause \ref{cmp.categories},
40834083
\defn{substitutability} is the property that \tcode{f(a) == f(b)} is \tcode{true}
40844084
whenever \tcode{a == b} is true,
40854085
where \tcode{f} denotes a function that reads only comparison-salient state

source/threads.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5974,7 +5974,7 @@
59745974
\rSec2[futures.state]{Shared state}
59755975

59765976
\pnum
5977-
Many of the classes introduced in this subclause use some state to communicate results. This
5977+
Many of the classes introduced in subclause~\ref{futures} use some state to communicate results. This
59785978
\indextext{shared state|see{future, shared state}}
59795979
\defnx{shared state}{future!shared state} consists of some state information and some (possibly not
59805980
yet evaluated) \term{result}, which can be a (possibly void) value or an exception.

source/utilities.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@
960960

961961
\pnum
962962
\indexlibraryglobal{tuple}%
963-
This subclause describes the tuple library that provides a tuple type as
963+
Subclause~\ref{tuple} describes the tuple library that provides a tuple type as
964964
the class template \tcode{tuple} that can be instantiated with any number
965965
of arguments. Each template argument specifies
966966
the type of an element in the \tcode{tuple}. Consequently, tuples are
@@ -2123,7 +2123,7 @@
21232123
\rSec2[optional.general]{In general}
21242124

21252125
\pnum
2126-
This subclause describes class template \tcode{optional} that represents
2126+
Subclause~\ref{optional} describes class template \tcode{optional} that represents
21272127
optional objects.
21282128
An \defn{optional object} is an
21292129
object that contains the storage for another object and manages the lifetime of
@@ -6495,7 +6495,7 @@
64956495
\rSec2[memory.general]{In general}
64966496

64976497
\pnum
6498-
This subclause describes the contents of the header
6498+
Subclause~\ref{memory} describes the contents of the header
64996499
\libheaderref{memory} and some
65006500
of the contents of the header \libheaderref{cstdlib}.
65016501

@@ -16233,7 +16233,7 @@
1623316233
The behavior of a program is undefined if:
1623416234
\begin{itemize}
1623516235
\item
16236-
an instantiation of a template specified in this subclause
16236+
an instantiation of a template specified in subclause~\ref{meta}
1623716237
directly or indirectly depends on
1623816238
an incompletely-defined object type \tcode{T}, and
1623916239
\item
@@ -18465,13 +18465,13 @@
1846518465

1846618466
\pnum
1846718467
\indexlibraryglobal{ratio}%
18468-
This subclause describes the ratio library. It provides a class template
18468+
Subclause~\ref{ratio} describes the ratio library. It provides a class template
1846918469
\tcode{ratio} which exactly represents any finite rational number with a
1847018470
numerator and denominator representable by compile-time constants of type
1847118471
\tcode{intmax_t}.
1847218472

1847318473
\pnum
18474-
Throughout this subclause, the names of template parameters are used to express
18474+
Throughout subclause~\ref{ratio}, the names of template parameters are used to express
1847518475
type requirements. If a template parameter is named \tcode{R1} or \tcode{R2},
1847618476
and the template argument is not a specialization of the \tcode{ratio} template,
1847718477
the program is ill-formed.
@@ -18863,7 +18863,7 @@
1886318863
\rSec2[execpol.general]{In general}
1886418864

1886518865
\pnum
18866-
This subclause describes classes that are \defn{execution policy} types. An
18866+
Subclause~\ref{execpol} describes classes that are \defn{execution policy} types. An
1886718867
object of an execution policy type indicates the kinds of parallelism allowed
1886818868
in the execution of an algorithm and expresses the consequent requirements on
1886918869
the element access functions.

0 commit comments

Comments
 (0)