Skip to content

Commit dc0cebe

Browse files
Eeliszygoloid
authored andcommitted
Remove \shl and \shr.
1 parent 00e5fbc commit dc0cebe

15 files changed

+161
-166
lines changed

source/compatibility.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,9 +990,9 @@
990990
Change to semantics of well-defined expression. A valid \CppIII expression
991991
containing a right angle bracket (``\tcode{>}'') followed immediately by
992992
another right angle bracket may now be treated as closing two templates.
993-
For example, the following code is valid in \CppIII because ``\tcode{\shr}''
993+
For example, the following code is valid in \CppIII because ``\tcode{>>}''
994994
is a right-shift operator, but invalid in this International Standard because
995-
``\tcode{\shr}'' closes two templates.
995+
``\tcode{>>}'' closes two templates.
996996

997997
\begin{codeblock}
998998
template <class T> struct X { };

source/diagnostics.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@
13621362
\returns \tcode{error_code(static_cast<int>(e), generic_category())}.
13631363
\end{itemdescr}
13641364

1365-
\indexlibrarymember{operator\shl}{error_code}%
1365+
\indexlibrarymember{operator<<}{error_code}%
13661366
\begin{itemdecl}
13671367
template <class charT, class traits>
13681368
basic_ostream<charT, traits>&

source/expressions.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,8 @@
13231323

13241324
\begin{bnf}
13251325
\nontermdef{fold-operator} \textnormal{one of}\br
1326-
\terminal{+ }\quad\terminal{- }\quad\terminal{* }\quad\terminal{/ }\quad\terminal{\% }\quad\terminal{\caret }\quad\terminal{\& }\quad\terminal{| }\quad\terminal{\shl\ }\quad\terminal{\shr }\br
1327-
\terminal{+=}\quad\terminal{-=}\quad\terminal{*=}\quad\terminal{/=}\quad\terminal{\%=}\quad\terminal{\caret=}\quad\terminal{\&=}\quad\terminal{|=}\quad\terminal{\shl=}\quad\terminal{\shr=}\quad\terminal{=}\br
1326+
\terminal{+ }\quad\terminal{- }\quad\terminal{* }\quad\terminal{/ }\quad\terminal{\% }\quad\terminal{\caret }\quad\terminal{\& }\quad\terminal{| }\quad\terminal{<< }\quad\terminal{>> }\br
1327+
\terminal{+=}\quad\terminal{-=}\quad\terminal{*=}\quad\terminal{/=}\quad\terminal{\%=}\quad\terminal{\caret=}\quad\terminal{\&=}\quad\terminal{|=}\quad\terminal{<<=}\quad\terminal{>>=}\quad\terminal{=}\br
13281328
\terminal{==}\quad\terminal{!=}\quad\terminal{< }\quad\terminal{> }\quad\terminal{<=}\quad\terminal{>=}\quad\terminal{\&\&}\quad\terminal{||}\quad\terminal{, }\quad\terminal{.* }\quad\terminal{->*}
13291329
\end{bnf}
13301330

@@ -4104,18 +4104,18 @@
41044104
\indextext{shift operator|see{operator, left shift; operator, right shift}}%
41054105
\indextext{right shift operator|see{operator, right shift}}%
41064106
\indextext{left shift operator|see{operator, left shift}}%
4107-
The shift operators \tcode{\shl} and \tcode{\shr} group left-to-right.
4107+
The shift operators \tcode{<<} and \tcode{>>} group left-to-right.
41084108

41094109
\indextext{operator!left shift}%
4110-
\indextext{\idxcode{\shl}|see{operator, left shift}}%
4110+
\indextext{\idxcode{<<}|see{operator, left shift}}%
41114111
\indextext{operator!right shift}%
4112-
\indextext{\idxcode{\shr}|see{operator, right shift}}%
4112+
\indextext{\idxcode{>>}|see{operator, right shift}}%
41134113
%
41144114
\begin{bnf}
41154115
\nontermdef{shift-expression}\br
41164116
additive-expression\br
4117-
shift-expression \terminal{\shl} additive-expression\br
4118-
shift-expression \terminal{\shr} additive-expression
4117+
shift-expression \terminal{<<} additive-expression\br
4118+
shift-expression \terminal{>>} additive-expression
41194119
\end{bnf}
41204120

41214121
The operands shall be of integral or unscoped enumeration type and integral
@@ -4126,7 +4126,7 @@
41264126
than or equal to the length in bits of the promoted left operand.
41274127

41284128
\pnum
4129-
The value of \tcode{E1 \shl\ E2} is \tcode{E1} left-shifted \tcode{E2} bit positions; vacated bits are
4129+
The value of \tcode{E1 << E2} is \tcode{E1} left-shifted \tcode{E2} bit positions; vacated bits are
41304130
zero-filled. If \tcode{E1} has an unsigned type, the value of the result
41314131
is $\mathrm{E1}\times2^\mathrm{E2}$, reduced modulo
41324132
one more than the maximum value representable in the result type. Otherwise, if
@@ -4136,7 +4136,7 @@
41364136
behavior is undefined.
41374137

41384138
\pnum
4139-
The value of \tcode{E1 \shr\ E2} is \tcode{E1} right-shifted \tcode{E2}
4139+
The value of \tcode{E1 >> E2} is \tcode{E1} right-shifted \tcode{E2}
41404140
bit positions. If \tcode{E1} has an unsigned type or if \tcode{E1} has a
41414141
signed type and a non-negative value, the value of the result is the
41424142
integral part of the quotient of $\mathrm{E1}/2^\mathrm{E2}$. If \tcode{E1}
@@ -4692,8 +4692,8 @@
46924692
\indextext{operator!\idxcode{*=}}%
46934693
\indextext{operator!\idxcode{/=}}%
46944694
\indextext{operator!\idxcode{\%=}}%
4695-
\indextext{operator!\idxcode{\shr=}}%
4696-
\indextext{operator!\idxcode{\shl=}}%
4695+
\indextext{operator!\idxcode{>>=}}%
4696+
\indextext{operator!\idxcode{<<=}}%
46974697
\indextext{operator!\idxcode{\&=}}%
46984698
\indextext{operator!\idxcode{\caret=}}%
46994699
\indextext{operator!\idxcode{"|=}}%
@@ -4728,7 +4728,7 @@
47284728

47294729
\begin{bnf}
47304730
\nontermdef{assignment-operator} \textnormal{one of}\br
4731-
\terminal{= *= /= \%= += -= \shr= \shl= \&= \caret= |=}
4731+
\terminal{= *= /= \%= += -= >>= <<= \&= \caret= |=}
47324732
\end{bnf}
47334733

47344734
\pnum

0 commit comments

Comments
 (0)