Skip to content

Commit 905e9e2

Browse files
committed
[std] Replace 'through' with 'to' for clause ranges
Fixes ISO/CS comment (C++23 proof)
1 parent 85f4bb4 commit 905e9e2

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

source/containers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19566,7 +19566,7 @@
1956619566
\end{itemize}
1956719567

1956819568
\pnum
19569-
In subclauses \ref{mdspan.layout.reqmts} through \ref{mdspan.layout.stride}:
19569+
In subclauses \ref{mdspan.layout.reqmts} to \ref{mdspan.layout.stride}:
1957019570
\begin{itemize}
1957119571
\item
1957219572
Let \exposid{is-mapping-of} be the exposition-only variable template defined as follows:

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7522,7 +7522,7 @@
75227522

75237523
\item
75247524
an operation that would have undefined or erroneous behavior
7525-
as specified in \ref{intro} through \ref{cpp},
7525+
as specified in \ref{intro} to \ref{cpp},
75267526
excluding \ref{dcl.attr.assume} and \ref{dcl.attr.noreturn};
75277527
\begin{footnote}
75287528
This includes,
@@ -7687,7 +7687,7 @@
76877687
\begin{itemize}
76887688
\item
76897689
an operation that has undefined behavior
7690-
as specified in \ref{library} through \ref{\lastlibchapter},
7690+
as specified in \ref{library} to \ref{\lastlibchapter},
76917691
\item
76927692
an invocation of the \tcode{va_start} macro\iref{cstdarg.syn},
76937693
\item

source/intro.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
library described in \IsoC{}, Clause 7
144144
\begin{defnote}
145145
With the qualifications noted in \ref{\firstlibchapter}
146-
through \ref{\lastlibchapter} and in \ref{diff.library},
146+
to \ref{\lastlibchapter} and in \ref{diff.library},
147147
the C standard library is a subset of the \Cpp{} standard library.
148148
\end{defnote}
149149

@@ -255,7 +255,7 @@
255255
Implementations are allowed, but not required,
256256
to diagnose it\iref{intro.compliance.general}.
257257
Evaluation of a constant expression\iref{expr.const}
258-
never exhibits behavior specified as erroneous in \ref{intro} through \ref{cpp}.
258+
never exhibits behavior specified as erroneous in \ref{intro} to \ref{cpp}.
259259
\end{defnote}
260260

261261
\definition{expression-equivalent}{defns.expression.equivalent}
@@ -643,7 +643,7 @@
643643
issuance of a diagnostic message). Many incorrect program constructs do
644644
not engender undefined behavior; they are required to be diagnosed.
645645
Evaluation of a constant expression\iref{expr.const} never exhibits behavior explicitly
646-
specified as undefined in \ref{intro} through \ref{cpp}.
646+
specified as undefined in \ref{intro} to \ref{cpp}.
647647
\end{defnote}
648648

649649
\indexdefn{behavior!unspecified}%
@@ -721,7 +721,7 @@
721721
\begin{itemize}
722722
\item
723723
If a program contains no violations of the rules in
724-
\ref{lex} through \ref{\lastlibchapter} and \ref{depr},
724+
\ref{lex} to \ref{\lastlibchapter} and \ref{depr},
725725
a conforming implementation shall,
726726
within its resource limits as described in \ref{implimits},
727727
accept and correctly execute
@@ -808,7 +808,7 @@
808808
supports all the facilities described in this document, while
809809
a freestanding implementation
810810
supports the entire \Cpp{} language
811-
described in \ref{lex} through \ref{cpp} and
811+
described in \ref{lex} to \ref{cpp} and
812812
the subset of the library facilities described in \ref{compliance}.
813813

814814
\pnum
@@ -951,13 +951,13 @@
951951
\pnum
952952
\indextext{standard!structure of|(}%
953953
\indextext{standard!structure of}%
954-
\ref{lex} through \ref{cpp} describe the \Cpp{} programming
954+
\ref{lex} to \ref{cpp} describe the \Cpp{} programming
955955
language. That description includes detailed syntactic specifications in
956956
a form described in~\ref{syntax}. For convenience, \ref{gram}
957957
repeats all such syntactic specifications.
958958

959959
\pnum
960-
\ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr}
960+
\ref{\firstlibchapter} to \ref{\lastlibchapter} and \ref{depr}
961961
(the \defn{library clauses}) describe the \Cpp{} standard library.
962962
That description includes detailed descriptions of the
963963
entities and macros

source/lib-intro.tex

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
The following subclauses describe the method of
1414
description\iref{description} and organization\iref{organization} of the
1515
library. \ref{requirements}, \ref{\firstlibchapter}
16-
through \ref{\lastlibchapter}, and \ref{depr} specify the contents of the
16+
to \ref{\lastlibchapter}, and \ref{depr} specify the contents of the
1717
library, as well as library requirements and constraints on both well-formed
1818
\Cpp{} programs and conforming implementations.
1919

@@ -179,7 +179,7 @@
179179
\pnum
180180
Subclause \ref{description} describes the conventions used to specify the \Cpp{} standard
181181
library. \ref{structure} describes the structure of
182-
\ref{\firstlibchapter} through \ref{\lastlibchapter} and
182+
\ref{\firstlibchapter} to \ref{\lastlibchapter} and
183183
\ref{depr}. \ref{conventions} describes other editorial conventions.
184184

185185
\rSec2[structure]{Structure of each clause}
@@ -486,7 +486,7 @@
486486

487487
\pnum
488488
Several entities and \grammarterm{typedef-name}{s}
489-
defined in \ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr}
489+
defined in \ref{\firstlibchapter} to \ref{\lastlibchapter} and \ref{depr}
490490
are only defined for the purpose of exposition.
491491
The declaration of such an entity or \grammarterm{typedef-name}
492492
is followed by a comment ending in \expos.
@@ -588,7 +588,7 @@
588588
\rSec4[bitmask.types]{Bitmask types}
589589

590590
\pnum
591-
Several types defined in \ref{\firstlibchapter} through \ref{\lastlibchapter}
591+
Several types defined in \ref{\firstlibchapter} to \ref{\lastlibchapter}
592592
and \ref{depr} are
593593
\defnx{bitmask types}{type!bitmask}.
594594
Each bitmask type can be implemented as an
@@ -710,7 +710,7 @@
710710
It is used
711711
in the character sequence to denote the beginning of a fractional part.
712712
It is
713-
represented in \ref{\firstlibchapter} through \ref{\lastlibchapter}
713+
represented in \ref{\firstlibchapter} to \ref{\lastlibchapter}
714714
and \ref{depr} by a period,
715715
\indextext{period}%
716716
\tcode{'.'},
@@ -853,7 +853,7 @@
853853
\rSec3[functions.within.classes]{Functions within classes}
854854

855855
\pnum
856-
For the sake of exposition, \ref{\firstlibchapter} through \ref{\lastlibchapter}
856+
For the sake of exposition, \ref{\firstlibchapter} to \ref{\lastlibchapter}
857857
and \ref{depr} do not describe copy/move constructors, assignment
858858
operators, or (non-virtual) destructors with the same apparent
859859
semantics as those that can be generated
@@ -868,12 +868,12 @@
868868
\rSec3[objects.within.classes]{Private members}
869869

870870
\pnum
871-
\ref{\firstlibchapter} through \ref{\lastlibchapter} and
871+
\ref{\firstlibchapter} to \ref{\lastlibchapter} and
872872
\ref{depr} do not specify the representation of classes, and intentionally
873873
omit specification of class members\iref{class.mem}. An implementation may
874874
define static or non-static class members, or both, as needed to implement the
875875
semantics of the member functions specified in \ref{\firstlibchapter}
876-
through \ref{\lastlibchapter} and \ref{depr}.
876+
to \ref{\lastlibchapter} and \ref{depr}.
877877

878878
\pnum
879879
For the sake of exposition,
@@ -1011,7 +1011,7 @@
10111011

10121012
\pnum
10131013
Subclause \ref{requirements} specifies requirements that apply to the entire \Cpp{} standard library.
1014-
\ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr}
1014+
\ref{\firstlibchapter} to \ref{\lastlibchapter} and \ref{depr}
10151015
specify the requirements of individual entities within the library.
10161016

10171017
\pnum
@@ -1073,7 +1073,7 @@
10731073
\tcode{swap}, \tcode{make_error_code}, \tcode{make_error_condition}, or
10741074
\tcode{submdspan_mapping}
10751075
is used in the specification of a declaration \tcode{D}
1076-
in \ref{\firstlibchapter} through \ref{\lastlibchapter} or \ref{depr},
1076+
in \ref{\firstlibchapter} to \ref{\lastlibchapter} or \ref{depr},
10771077
its meaning is established
10781078
as-if by performing unqualified name lookup\iref{basic.lookup.unqual}
10791079
in the context of \tcode{D}.
@@ -1272,15 +1272,15 @@
12721272
\end{example}
12731273

12741274
\pnum
1275-
Except as noted in \ref{library} through \ref{\lastlibchapter}
1275+
Except as noted in \ref{library} to \ref{\lastlibchapter}
12761276
and \ref{depr}, the contents of each header \tcode{c\placeholder{name}} is
12771277
the same as that of the corresponding header \tcode{\placeholder{name}.h} as
12781278
specified in the C standard library\iref{intro.refs}.
12791279
In the \Cpp{} standard library, however, the
12801280
declarations (except for names which are defined as macros in C) are within
12811281
namespace scope\iref{basic.scope.namespace} of the namespace \tcode{std}.
12821282
It is unspecified whether these names (including any overloads added in
1283-
\ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr})
1283+
\ref{\firstlibchapter} to \ref{\lastlibchapter} and \ref{depr})
12841284
are first declared within the global namespace scope
12851285
and are then injected into namespace \tcode{std} by explicit
12861286
\grammarterm{using-declaration}{s}\iref{namespace.udecl}.
@@ -3285,7 +3285,7 @@
32853285

32863286
\pnum
32873287
\indextext{definition!alternate}%
3288-
\ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr}
3288+
\ref{\firstlibchapter} to \ref{\lastlibchapter} and \ref{depr}
32893289
describe the behavior of numerous functions defined by
32903290
the \Cpp{} standard library.
32913291
Under some circumstances,
@@ -3588,7 +3588,7 @@
35883588

35893589
\pnum
35903590
A call to a non-member function signature
3591-
described in \ref{\firstlibchapter} through \ref{\lastlibchapter} and
3591+
described in \ref{\firstlibchapter} to \ref{\lastlibchapter} and
35923592
\ref{depr} shall behave as if the implementation declared no additional
35933593
non-member function signatures.
35943594
\begin{footnote}
@@ -3764,7 +3764,7 @@
37643764
\pnum
37653765
\indextext{protection}%
37663766
It is unspecified whether any function signature or class described in
3767-
\ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr} is a
3767+
\ref{\firstlibchapter} to \ref{\lastlibchapter} and \ref{depr} is a
37683768
friend of another class in the \Cpp{} standard library.
37693769
\indextext{specifier!\idxcode{friend}}
37703770

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3374,7 +3374,7 @@
33743374
described in the rest of \ref{over.oper}.
33753375

33763376
\pnum
3377-
Operators not mentioned explicitly in subclauses~\ref{over.ass} through~\ref{over.inc}
3377+
Operators not mentioned explicitly in subclauses~\ref{over.ass} to~\ref{over.inc}
33783378
act as ordinary unary and binary
33793379
operators obeying the rules of~\ref{over.unary} or~\ref{over.binary}.%
33803380
\indextext{overloading!resolution!best viable function|)}%

0 commit comments

Comments
 (0)