Skip to content

Commit 316b777

Browse files
author
Dawn Perchik
committed
[temp] Add page breaks.
Partially addresses #4228.
1 parent e312e38 commit 316b777

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/templates.tex

+18
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,9 @@
17711771
The formation of the associated constraints
17721772
establishes the order in which constraints are instantiated when checking
17731773
for satisfaction\iref{temp.constr.constr}.
1774+
1775+
\newpage
1776+
17741777
\begin{example}
17751778
\begin{codeblock}
17761779
template<typename T> concept C = true;
@@ -5273,6 +5276,7 @@
52735276
A<T>::type i; // OK: refers to a member of the current instantiation
52745277
typename A<T>::other j; // error: neither a member of the current instantiation nor
52755278
// a member of an unknown specialization
5279+
@\newpage@
52765280
}
52775281
};
52785282
\end{codeblock}
@@ -5749,6 +5753,8 @@
57495753
not just considering those declarations found in the template definition and
57505754
template instantiation contexts, then the program has undefined behavior.
57515755

5756+
\newpage
5757+
57525758
\pnum
57535759
\begin{example}
57545760
\begin{codeblocktu}{Source file \tcode{"X.h"}}
@@ -5984,6 +5990,9 @@
59845990
a member function template,
59855991
the name of the function or member function explicitly specialized may be a
59865992
\grammarterm{template-id}.
5993+
5994+
\newpage
5995+
59875996
\begin{example}
59885997
\begin{codeblock}
59895998
template<class T = int> struct A {
@@ -7717,6 +7726,9 @@
77177726
\end{example}
77187727
\item
77197728
Attempting to use a type that is not a class or enumeration type in a qualified name.
7729+
7730+
\newpage
7731+
77207732
\begin{example}
77217733
\begin{codeblock}
77227734
template <class T> int f(typename T::B*);
@@ -7891,6 +7903,9 @@
78917903
When a function parameter pack appears in a non-deduced
78927904
context\iref{temp.deduct.type}, the type of that pack is
78937905
never deduced.
7906+
7907+
\newpage
7908+
78947909
\begin{example}
78957910
\begin{codeblock}
78967911
template<class ... Types> void f(Types& ...);
@@ -8397,6 +8412,7 @@
83978412

83988413
f(); // calls \#1
83998414
f(1, 2, 3); // calls \#2
8415+
@\newpage@
84008416
f(1, 2); // calls \#3; non-variadic template \#3 is more specialized
84018417
// than the variadic templates \#1 and \#2
84028418
\end{codeblock}
@@ -9054,6 +9070,8 @@
90549070
can be deduced from a function, pointer to function, or
90559071
pointer-to-member-function type.
90569072

9073+
\newpage
9074+
90579075
\begin{example}
90589076
\begin{codeblock}
90599077
template<class T> void f(void(*)(T,int));

0 commit comments

Comments
 (0)