Skip to content

Commit 5961b15

Browse files
committed
Replace all '\sim's with '\~'s, to give more consistent formatting for ~s.
1 parent 92d8313 commit 5961b15

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

source/containers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
had before this assignment &
179179
linear \\ \rowsep
180180

181-
\tcode{(\&a)->$\sim$X()} &
181+
\tcode{(\&a)->\~X()} &
182182
\tcode{void} &
183183
&
184184
note: the destructor is applied to every element of \tcode{a}; any memory obtained is deallocated. &

source/exceptions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@
10731073
// Implicit declaration of \tcode{D::D();}
10741074
// Implicit declaration of \tcode{D::D(const D\&) noexcept(true);}
10751075
// Implicit declaration of \tcode{D::D(D\&\&) throw(Y);}
1076-
// Implicit declaration of \tcode{D::$\sim$D() throw(X, Y);}
1076+
// Implicit declaration of \tcode{D::\~D() throw(X, Y);}
10771077
};
10781078
\end{codeblock}
10791079

source/grammar.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@
18071807
\begin{bnfkeywordtab}
18081808
\nontermdef{operator} \textnormal{one of}\br
18091809
\>new\>delete\>new[]\>delete[]\br
1810-
\>+\>-\>*\>/\>\%\>\^{}\>\&\>|\>$\sim$\br
1810+
\>+\>-\>*\>/\>\%\>\^{}\>\&\>|\>\~\br
18111811
\>!\>=\><\>>\>+=\>-=\>*=\>/=\>\%=\br
18121812
\>\^{}=\>\&=\>|=\>\shl\>\shr\>\shr=\>\shl=\>={=}\>!=\br
18131813
\><=\>>=\>\&\&\>|{|}\>++\>-{-}\>,\>->*\>->\br

source/iostreams.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8726,7 +8726,7 @@
87268726
\indextext{NTBS}%
87278727
\indexlibrary{\idxcode{fopen}}%
87288728
The \ntbs \tcode{modstr} is determined from
8729-
\tcode{mode \& $\sim$ios_base::ate}
8729+
\tcode{mode \& \~{}ios_base::ate}
87308730
as indicated in Table~\ref{tab:iostreams.file.open.modes}.
87318731
If \tcode{mode} is not some combination of flags shown in the table then
87328732
the open fails.

source/lex.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194

195195
0 1 2 3 4 5 6 7 8 9
196196

197-
_ { } [ ] # ( ) < > % : ; . ? * + - / ^ & | @$\sim$@ ! = , @\textbackslash@ " '
197+
_ { } [ ] # ( ) < > % : ; . ? * + - / ^ & | ~ ! = , @\textbackslash@ " '
198198
\end{codeblock}
199199

200200
\pnum
@@ -268,7 +268,7 @@
268268
\tcode{??>} & \tcode{\}} \\ \rowsep
269269
\tcode{??'} & \tcode{\^{}} &
270270
\tcode{??!} & \tcode{|} &
271-
\tcode{??-} & \tcode{$\sim$} \\
271+
\tcode{??-} & \tcode{\~} \\
272272
\end{tokentable}
273273

274274
\pnum
@@ -418,7 +418,7 @@
418418
\tcode{xor} & \tcode{\^{}} &
419419
\tcode{not} & \tcode{!} \\ \rowsep
420420
\tcode{\%:} & \tcode{\#} &
421-
\tcode{compl} & \tcode{$\sim$} &
421+
\tcode{compl} & \tcode{\~} &
422422
\tcode{not_eq} & \tcode{!=} \\ \rowsep
423423
\tcode{\%:\%:} & \tcode{\#\#} &
424424
\tcode{bitand} & \tcode{\&} &

source/lib-intro.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,17 +692,17 @@
692692
To
693693
\term{set}
694694
a value \textit{Y} in an object \textit{X}
695-
is to evaluate the expression \textit{X} $|$= \textit{Y}.
695+
is to evaluate the expression \textit{X} \tcode{|=} \textit{Y}.
696696
\item
697697
To
698698
\term{clear}
699699
a value \textit{Y} in an object
700-
\textit{X} is to evaluate the expression \textit{X} \&= $\sim$\textit{Y}.
700+
\textit{X} is to evaluate the expression \textit{X} \tcode{\&= \~}\textit{Y}.
701701
\item
702702
The value \textit{Y}
703703
\term{is set}
704704
in the object
705-
\textit{X} if the expression \textit{X} \& \textit{Y} is nonzero.
705+
\textit{X} if the expression \textit{X} \tcode{\&} \textit{Y} is nonzero.
706706
\end{itemize}
707707

708708
\rSec4[character.seq]{Character sequences}
@@ -1374,7 +1374,7 @@
13741374
{p{1in}p{4.15in}}
13751375
\topline
13761376
Expression & Post-condition \\ \capsep
1377-
\tcode{u.$\sim$T()} & All resources owned by \tcode{u} are reclaimed, no exception is propagated. \\
1377+
\tcode{u.\~T()} & All resources owned by \tcode{u} are reclaimed, no exception is propagated. \\
13781378
\end{concepttable}
13791379

13801380
\rSec3[swappable.requirements]{\tcode{Swappable} requirements}

source/overloading.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,7 @@
27982798
\begin{bnfkeywordtab}
27992799
\nontermdef{operator} \textnormal{one of}\br
28002800
\>new\>delete\>new[]\>delete[]\br
2801-
\>+\>-\>*\>/\>\%\>\^{}\>\&\>|\>$\sim$\br
2801+
\>+\>-\>*\>/\>\%\>\^{}\>\&\>|\>\~\br
28022802
\>!\>=\><\>>\>+=\>-=\>*=\>/=\>\%=\br
28032803
\>\^{}=\>\&=\>|=\>\shl\>\shr\>\shr=\>\shl=\>={=}\>!=\br
28042804
\><=\>>=\>\&\&\>|{|}\>++\>-{-}\>,\>->*\>->\br
@@ -3448,7 +3448,7 @@
34483448
there exist candidate operator functions of the form
34493449

34503450
\begin{codeblock}
3451-
@\textit{T}@ operator@$\sim$@(@\textit{T}@);
3451+
@\textit{T}@ operator~(@\textit{T}@);
34523452
\end{codeblock}
34533453

34543454
\pnum

source/preprocessor.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@
912912
#define x 2
913913
#define g f
914914
#define z z[0]
915-
#define h g(@$\sim$@
915+
#define h g(~
916916
#define m(a) a(w)
917917
#define w 0,1
918918
#define t(a) a
@@ -932,7 +932,7 @@
932932

933933
\begin{codeblock}
934934
f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);
935-
f(2 * (2+(3,4)-0,1)) | f(2 * (@$\sim$@ 5)) & f(2 * (0,1))^m(0,1);
935+
f(2 * (2+(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1);
936936
int i[] = { 1, 23, 4, 5, };
937937
char c[2][6] = { "hello", "" };
938938
\end{codeblock}

0 commit comments

Comments
 (0)