Skip to content

Commit 0781ce3

Browse files
Eeliszygoloid
authored andcommitted
[std] Remove unnecessary bracketing in tcode.
1 parent ca92e81 commit 0781ce3

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

source/expressions.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@
28562856
postfix-expression \terminal{.} \opt{\terminal{template}} id-expression\br
28572857
postfix-expression \terminal{->} \opt{\terminal{template}} id-expression\br
28582858
postfix-expression \terminal{++}\br
2859-
postfix-expression \terminal{-{-}}\br
2859+
postfix-expression \terminal{--}\br
28602860
\keyword{dynamic_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
28612861
\keyword{static_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
28622862
\keyword{reinterpret_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
@@ -2876,7 +2876,7 @@
28762876
\grammarterm{type-id} in a \tcode{dynamic_cast},
28772877
\tcode{static_cast}, \tcode{reinterpret_cast}, or
28782878
\tcode{const_cast} might be the product of replacing a
2879-
\tcode{>{>}} token by two consecutive \tcode{>}
2879+
\tcode{>>} token by two consecutive \tcode{>}
28802880
tokens\iref{temp.names}.
28812881
\end{note}
28822882

@@ -4200,7 +4200,7 @@
42004200
postfix-expression\br
42014201
unary-operator cast-expression\br
42024202
\terminal{++} cast-expression\br
4203-
\terminal{-{-}} cast-expression\br
4203+
\terminal{--} cast-expression\br
42044204
await-expression\br
42054205
\keyword{sizeof} unary-expression\br
42064206
\keyword{sizeof} \terminal{(} type-id \terminal{)}\br

source/iterators.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@
620620
the result of \tcode{n} applications of \tcode{++i}.
621621
A counted range \countedrange{i}{n} is valid if and only if \tcode{n == 0};
622622
or \tcode{n} is positive, \tcode{i} is dereferenceable,
623-
and \countedrange{++i}{-{-}n} is valid.
623+
and \countedrange{++i}{--n} is valid.
624624

625625
\pnum
626626
The result of the application of library functions
@@ -1255,7 +1255,7 @@
12551255
\tcode{Out} and \tcode{T} model \tcode{\libconcept{indirectly_writable}<Out, T>} only if
12561256
\begin{itemize}
12571257
\item If \tcode{Out} and \tcode{T} model
1258-
\tcode{\libconcept{indirectly_readable}<Out> \&\& \libconcept{same_as}<iter_value_t<Out>, decay_t<T>{>}},
1258+
\tcode{\libconcept{indirectly_readable}<Out> \&\& \libconcept{same_as}<iter_value_t<Out>, decay_t<T>>},
12591259
then \tcode{*o} after any above assignment is equal to
12601260
the value of \tcode{E} before the assignment.
12611261
\end{itemize}
@@ -3017,7 +3017,7 @@
30173017
\begin{itemdescr}
30183018
\pnum
30193019
\effects
3020-
Equivalent to: \tcode{-{-}x; return x;}
3020+
Equivalent to: \tcode{--x; return x;}
30213021
\end{itemdescr}
30223022

30233023
\indexlibraryglobal{prev}%
@@ -4566,7 +4566,7 @@
45664566
ranges together with \tcode{move_iterator}. When an input iterator type
45674567
\tcode{I} and sentinel type \tcode{S} model \tcode{\libconcept{sentinel_for}<S, I>},
45684568
\tcode{move_sentinel<S>} and \tcode{move_iterator<I>} model
4569-
\tcode{\libconcept{sentinel_for}<move_sentinel<S>, move_iterator<I>{>}} as well.
4569+
\tcode{\libconcept{sentinel_for}<move_sentinel<S>, move_iterator<I>>} as well.
45704570

45714571
\pnum
45724572
\begin{example}
@@ -5399,7 +5399,7 @@
53995399
\end{codeblock}
54005400
\end{itemdescr}
54015401

5402-
\indexlibrarymember{operator{-}-}{counted_iterator}%
5402+
\indexlibrarymember{operator--}{counted_iterator}%
54035403
\begin{itemdecl}
54045404
constexpr counted_iterator& operator--()
54055405
requires @\libconcept{bidirectional_iterator}@<I>;
@@ -5416,7 +5416,7 @@
54165416
\end{codeblock}
54175417
\end{itemdescr}
54185418

5419-
\indexlibrarymember{operator{-}-}{counted_iterator}%
5419+
\indexlibrarymember{operator--}{counted_iterator}%
54205420
\begin{itemdecl}
54215421
constexpr counted_iterator operator--(int)
54225422
requires @\libconcept{bidirectional_iterator}@<I>;

source/templates.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
\grammarterm{template-parameter-list} of a
5555
\grammarterm{template-declaration}
5656
can be the product of replacing a
57-
\tcode{>{>}} token by two consecutive \tcode{>}
57+
\tcode{>>} token by two consecutive \tcode{>}
5858
tokens\iref{temp.names}.
5959
\end{note}
6060

@@ -259,7 +259,7 @@
259259
\grammarterm{template-parameter-list} of a
260260
\grammarterm{type-parameter}
261261
can be the product of replacing a
262-
\tcode{>{>}} token by two consecutive \tcode{>}
262+
\tcode{>>} token by two consecutive \tcode{>}
263263
tokens\iref{temp.names}.
264264
\end{note}
265265

@@ -730,7 +730,7 @@
730730
\end{footnote}
731731
is taken as the ending delimiter
732732
rather than a greater-than operator.
733-
Similarly, the first non-nested \tcode{>{>}} is treated as two
733+
Similarly, the first non-nested \tcode{>>} is treated as two
734734
consecutive but distinct \tcode{>} tokens, the first of which is taken
735735
as the end of the \grammarterm{template-argument-list} and completes
736736
the \grammarterm{template-id}.
@@ -2829,7 +2829,7 @@
28292829
};
28302830

28312831
typedef zip<short, int>::with<unsigned short, unsigned>::type T1;
2832-
// \tcode{T1} is \tcode{Tuple<Pair<short, unsigned short>, Pair<int, unsigned>{>}}
2832+
// \tcode{T1} is \tcode{Tuple<Pair<short, unsigned short>, Pair<int, unsigned>>}
28332833
typedef zip<short>::with<unsigned short, unsigned>::type T2;
28342834
// error: different number of arguments specified for \tcode{Args1} and \tcode{Args2}
28352835

@@ -4178,7 +4178,7 @@
41784178
\begin{codeblock}
41794179
template<class T> struct Alloc { @\commentellip@ };
41804180
template<class T> using Vec = vector<T, Alloc<T>>;
4181-
Vec<int> v; // same as \tcode{vector<int, Alloc<int>{>} v;}
4181+
Vec<int> v; // same as \tcode{vector<int, Alloc<int>> v;}
41824182

41834183
template<class T>
41844184
void process(Vec<T>& v)

source/threads.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7158,7 +7158,7 @@
71587158
\pnum
71597159
\returns
71607160
An object of type
7161-
\tcode{future<invoke_result_t<decay_t<F>, decay_t<Args>...>{>}} that refers
7161+
\tcode{future<invoke_result_t<decay_t<F>, decay_t<Args>...>>} that refers
71627162
to the shared state created by this call to \tcode{async}.
71637163
\begin{note}
71647164
If a future obtained from \tcode{async} is moved outside the local scope,

source/utilities.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17351,7 +17351,7 @@
1735117351
struct add_cv;} &
1735217352
The member typedef \tcode{type} names
1735317353
the same type as
17354-
\tcode{add_const_t<add_volatile_t<T>{>}}. \\
17354+
\tcode{add_const_t<add_volatile_t<T>>}. \\
1735517355
\end{libreqtab2a}
1735617356

1735717357
\rSec3[meta.trans.ref]{Reference modifications}
@@ -17872,8 +17872,8 @@
1787217872
pursuant to \ref{namespace.std}, a program may partially specialize
1787317873
\tcode{basic_common_reference<T, U, TQual, UQual>}
1787417874
for types \tcode{T} and \tcode{U} such that
17875-
\tcode{is_same_v<T, decay_t<T>{>}} and
17876-
\tcode{is_same_v<U, decay_t<U>{>}} are each \tcode{true}.
17875+
\tcode{is_same_v<T, decay_t<T>>} and
17876+
\tcode{is_same_v<U, decay_t<U>>} are each \tcode{true}.
1787717877
\begin{note}
1787817878
Such specializations
1787917879
can be used to influence the result of \tcode{common_reference}, and

0 commit comments

Comments
 (0)