Skip to content

Commit

Permalink
[std] Remove mid-sentence 'subclause' introducer
Browse files Browse the repository at this point in the history
Fixes ISO/CS comment (C++23 proof)
  • Loading branch information
jensmaurer committed May 13, 2024
1 parent 85f4bb4 commit fdf3a92
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion source/concepts.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@
\rSec2[concepts.callable.general]{General}

\pnum
The concepts in subclause \ref{concepts.callable} describe the requirements on function
The concepts in \ref{concepts.callable} describe the requirements on function
objects\iref{function.objects} and their arguments.

\rSec2[concept.invocable]{Concept \cname{invocable}}
Expand Down
12 changes: 6 additions & 6 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
\rSec3[container.intro.reqmts]{Introduction}

\pnum
In subclause \ref{container.requirements.general},
In \ref{container.requirements.general},
\begin{itemize}
\item
\tcode{X} denotes a container class containing objects of type \tcode{T},
Expand Down Expand Up @@ -19128,7 +19128,7 @@

The class template \tcode{extents} represents
a multidimensional index space of rank equal to \tcode{sizeof...(Extents)}.
In subclause \iref{views},
In \iref{views},
\tcode{extents} is used synonymously with multidimensional index space.

\begin{codeblock}
Expand Down Expand Up @@ -19539,7 +19539,7 @@
\rSec4[mdspan.layout.general]{General}

\pnum
In subclauses \ref{mdspan.layout.reqmts} and \ref{mdspan.layout.policy.reqmts}:
In \ref{mdspan.layout.reqmts} and \ref{mdspan.layout.policy.reqmts}:

\begin{itemize}
\item
Expand All @@ -19566,7 +19566,7 @@
\end{itemize}

\pnum
In subclauses \ref{mdspan.layout.reqmts} through \ref{mdspan.layout.stride}:
In \ref{mdspan.layout.reqmts} through \ref{mdspan.layout.stride}:
\begin{itemize}
\item
Let \exposid{is-mapping-of} be the exposition-only variable template defined as follows:
Expand Down Expand Up @@ -22225,7 +22225,7 @@
the accessor policy's \tcode{access} function produces a valid reference to an object.

\pnum
In subclause \ref{mdspan.accessor.reqmts},
In \ref{mdspan.accessor.reqmts},

\begin{itemize}
\item
Expand Down Expand Up @@ -23016,7 +23016,7 @@
the \tcode{SliceSpecifier} arguments.

\pnum
For each function defined in subclause \ref{mdspan.sub} that
For each function defined in \ref{mdspan.sub} that
takes a parameter pack named \tcode{slices} as an argument:

\begin{itemize}
Expand Down
2 changes: 1 addition & 1 deletion source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
considered where necessary to convert the operands to types appropriate
for the built-in operator. If a built-in operator is selected, such
conversions will be applied to the operands before the operation is
considered further according to the rules in subclause \ref{expr.compound};
considered further according to the rules in \ref{expr.compound};
see~\ref{over.match.oper}, \ref{over.built}.

\pnum
Expand Down
2 changes: 1 addition & 1 deletion source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10002,7 +10002,7 @@
\begin{note}
A user of these classes is responsible for ensuring
that the character sequence represented by the given \tcode{span}
outlives the use of the sequence by objects of the classes in subclause \ref{span.streams}.
outlives the use of the sequence by objects of the classes in \ref{span.streams}.
Using multiple \tcode{basic_spanbuf} objects
referring to overlapping underlying sequences from different threads,
where at least one \tcode{basic_spanbuf} object is used
Expand Down
2 changes: 1 addition & 1 deletion source/lib-intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@
allocators.

\pnum
In subclause \ref{allocator.requirements},
In \ref{allocator.requirements},
\begin{itemize}
\item
\tcode{T}, \tcode{U}, \tcode{C} denote
Expand Down
2 changes: 1 addition & 1 deletion source/locales.tex
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@
but set to \tcode{ios_base::failbit} in case of a parse error.

\pnum
Within subclause \ref{locale.categories} it is unspecified whether
Within \ref{locale.categories} it is unspecified whether
one virtual function calls another virtual function.

\rSec2[category.ctype]{The \tcode{ctype} category}
Expand Down
2 changes: 1 addition & 1 deletion source/memory.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3275,7 +3275,7 @@
reflect modifications that can introduce data races.

\pnum
For the purposes of subclause \ref{smartptr},
For the purposes of \ref{smartptr},
a pointer type \tcode{Y*} is said to be
\defnx{compatible with}{compatible with!\idxcode{shared_ptr}}
a pointer type \tcode{T*} when either
Expand Down
2 changes: 1 addition & 1 deletion source/preface.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ \chapter{Introduction}
Clauses and subclauses in this document are annotated
with a so-called stable name,
presented in square brackets next to the (sub)clause heading
(such as ``[lex.token]'' for subclause \ref{lex.token}, ``Tokens'').
(such as ``[lex.token]'' for \ref{lex.token}, ``Tokens'').
Stable names aid in the discussion and evolution of this document
by serving as stable references to subclauses across editions
that are unaffected by changes of subclause numbering.
Expand Down
4 changes: 2 additions & 2 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@
\rSec2[range.utility.helpers]{Helper concepts}

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

\begin{codeblock}
Expand Down Expand Up @@ -4233,7 +4233,7 @@
\rSec2[range.nonprop.cache]{Non-propagating cache}

\pnum
Some types in subclause \ref{range.adaptors} are specified in terms of
Some types in \ref{range.adaptors} are specified in terms of
an exposition-only class template \exposid{non-propagating-\brk{}cache}.
\tcode{\exposid{non-propagating-cache}<T>} behaves exactly like \tcode{optional<T>}
with the following differences:
Expand Down
2 changes: 1 addition & 1 deletion source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4332,7 +4332,7 @@
an argument other than a literal \tcode{0} is undefined.

\pnum
For the purposes of subclause \ref{cmp.categories},
For the purposes of \ref{cmp.categories},
\defn{substitutability} is the property that \tcode{f(a) == f(b)} is \tcode{true}
whenever \tcode{a == b} is \tcode{true},
where \tcode{f} denotes a function that reads only comparison-salient state
Expand Down
6 changes: 3 additions & 3 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4873,7 +4873,7 @@
These template arguments are called alternatives.

\pnum
In subclause \ref{variant},
In \ref{variant},
\exposid{GET} denotes
a set of exposition-only function templates\iref{variant.get}.

Expand Down Expand Up @@ -11026,7 +11026,7 @@
The template parameter \tcode{T} of \tcode{reference_wrapper}
may be an incomplete type.
\begin{note}
Using the comparison operators described in subclause \ref{refwrap.comparisons}
Using the comparison operators described in \ref{refwrap.comparisons}
with \tcode{T} being an incomplete type
can lead to an ill-formed program
with no diagnostic required\iref{temp.point,temp.constr.atomic}.
Expand Down Expand Up @@ -14312,7 +14312,7 @@
that models \libconcept{copyable}.

\pnum
Within subclause \ref{func.wrap.ref},
Within \ref{func.wrap.ref},
\tcode{\placeholder{call-args}} is an argument pack with elements such that
\tcode{decltype((\placeholder{call-args}\linebreak{}))...} denote
\tcode{Args\&\&...} respectively.
Expand Down

0 comments on commit fdf3a92

Please sign in to comment.