Skip to content

Commit 32eae82

Browse files
jensmaurertkoeppe
authored andcommitted
Use \commentellip macro for omitted program text. (#2027)
1 parent b92f091 commit 32eae82

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

source/declarators.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
\grammarterm{decl-specifier}{s} are used in a subsequent declaration,
7676
they do not have the same meaning, as in
7777
\begin{codeblock}
78-
struct S { ... };
78+
struct S { @\commentellip@ };
7979
S S, T; // declare two instances of \tcode{struct S}
8080
\end{codeblock}
8181
which is not equivalent to
8282
\begin{codeblock}
83-
struct S { ... };
83+
struct S { @\commentellip@ };
8484
S S;
8585
S T; // error
8686
\end{codeblock}
@@ -2027,7 +2027,7 @@
20272027
\tcode{c)}
20282028
is the
20292029
\grammarterm{declarator};
2030-
\tcode{\{ /* ...\ */ \}}
2030+
\tcode{\{ \commentellip{} \}}
20312031
is the
20322032
\grammarterm{function-body}.
20332033
\end{example}

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,11 +1092,11 @@
10921092
that of the following conversion function:
10931093
\begin{codeblock}
10941094
struct Closure {
1095-
template<class T> auto operator()(T t) const { ... }
1095+
template<class T> auto operator()(T t) const { @\commentellip@ }
10961096
template<class T> static auto lambda_call_operator_invoker(T a) {
10971097
// forwards execution to \tcode{operator()(a)} and therefore has
10981098
// the same return type deduced
1099-
...
1099+
@\commentellip@
11001100
}
11011101
template<class T> using fptr_t =
11021102
decltype(lambda_call_operator_invoker(declval<T>())) (*)(T);

source/iostreams.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@
368368
types.
369369
One way to do this might be
370370
\begin{codeblock}
371-
template<class stateT> class fpos { ... }; // depends on nothing
372-
using _STATE = ... ; // implementation private declaration of \tcode{stateT}
371+
template<class stateT> class fpos { @\commentellip@ }; // depends on nothing
372+
using _STATE = @\commentellip@ ; // implementation private declaration of \tcode{stateT}
373373

374374
using streampos = fpos<_STATE>;
375375

0 commit comments

Comments
 (0)