Skip to content

Commit 8698ea4

Browse files
Bekenntkoeppe
authored andcommitted
[over.match.best.general] Minor formatting fixes
1 parent 88b2b8d commit 8698ea4

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

source/overloading.tex

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,8 +1755,8 @@
17551755

17561756
\item the context is an initialization by conversion function for direct
17571757
reference binding\iref{over.match.ref} of a reference to function type, the
1758-
return type of \tcode{F1} is the same kind of reference (lvalue or rvalue)
1759-
as the reference being initialized, and the return type of \tcode{F2} is not
1758+
return type of $\tcode{F}_1$ is the same kind of reference (lvalue or rvalue)
1759+
as the reference being initialized, and the return type of $\tcode{F}_2$ is not
17601760
\begin{example}
17611761
\begin{codeblock}
17621762
template <class T> struct A {
@@ -1772,29 +1772,29 @@
17721772
or, if not that,
17731773

17741774
\item
1775-
\tcode{F1}
1775+
$\tcode{F}_1$
17761776
is not a function template specialization and
1777-
\tcode{F2}
1777+
$\tcode{F}_2$
17781778
is a
17791779
function template
17801780
specialization, or, if not that,
17811781

17821782
\item
1783-
\tcode{F1}
1783+
$\tcode{F}_1$
17841784
and
1785-
\tcode{F2}
1785+
$\tcode{F}_2$
17861786
are
17871787
function template specializations,
17881788
and the function template
17891789
for
1790-
\tcode{F1}
1790+
$\tcode{F}_1$
17911791
is more specialized than the template for
1792-
\tcode{F2}
1792+
$\tcode{F}_2$
17931793
according to the partial ordering rules described in~\ref{temp.func.order},
17941794
or, if not that,
17951795

17961796
\item
1797-
\tcode{F1} and \tcode{F2} are non-template functions and
1797+
$\tcode{F}_1$ and $\tcode{F}_2$ are non-template functions and
17981798
\begin{itemize}
17991799
\item
18001800
they have the same non-object-parameter-type-lists\iref{dcl.fct}, and
@@ -1804,11 +1804,10 @@
18041804
if both are non-static member functions,
18051805
they have the same types for their object parameters, and
18061806
\item
1807-
\tcode{F1} is more constrained than \tcode{F2}
1807+
$\tcode{F}_1$ is more constrained than $\tcode{F}_2$
18081808
according to the partial ordering of constraints described in
1809-
\ref{temp.constr.order},
1809+
\ref{temp.constr.order}
18101810
\end{itemize}
1811-
or if not that,
18121811
\begin{example}
18131812
\begin{codeblock}
18141813
template <typename T = int>
@@ -1823,12 +1822,13 @@
18231822
}
18241823
\end{codeblock}
18251824
\end{example}
1825+
or, if not that,
18261826

18271827
\item
1828-
\tcode{F1} is a constructor for a class \tcode{D},
1829-
\tcode{F2} is a constructor for a base class \tcode{B} of \tcode{D}, and
1828+
$\tcode{F}_1$ is a constructor for a class \tcode{D},
1829+
$\tcode{F}_2$ is a constructor for a base class \tcode{B} of \tcode{D}, and
18301830
for all arguments
1831-
the corresponding parameters of \tcode{F1} and \tcode{F2} have the same type
1831+
the corresponding parameters of $\tcode{F}_1$ and $\tcode{F}_2$ have the same type
18321832
\begin{example}
18331833
\begin{codeblock}
18341834
struct A {
@@ -1848,8 +1848,8 @@
18481848
or, if not that,
18491849

18501850
\item
1851-
\tcode{F2} is a rewritten candidate\iref{over.match.oper} and
1852-
\tcode{F1} is not
1851+
$\tcode{F}_2$ is a rewritten candidate\iref{over.match.oper} and
1852+
$\tcode{F}_1$ is not
18531853
\begin{example}
18541854
\begin{codeblock}
18551855
struct S {
@@ -1862,10 +1862,10 @@
18621862
or, if not that,
18631863

18641864
\item
1865-
\tcode{F1} and \tcode{F2} are rewritten candidates, and
1866-
\tcode{F2} is a synthesized candidate
1865+
$\tcode{F}_1$ and $\tcode{F}_2$ are rewritten candidates, and
1866+
$\tcode{F}_2$ is a synthesized candidate
18671867
with reversed order of parameters
1868-
and \tcode{F1} is not
1868+
and $\tcode{F}_1$ is not
18691869
\begin{example}
18701870
\begin{codeblock}
18711871
struct S {
@@ -1875,32 +1875,32 @@
18751875
bool b = 1 < S(); // calls \#2
18761876
\end{codeblock}
18771877
\end{example}
1878-
or, if not that
1878+
or, if not that,
18791879

18801880
\item
1881-
\tcode{F1} and \tcode{F2} are generated
1881+
$\tcode{F}_1$ and $\tcode{F}_2$ are generated
18821882
from class template argument deduction\iref{over.match.class.deduct}
18831883
for a class \tcode{D}, and
1884-
\tcode{F2} is generated
1884+
$\tcode{F}_2$ is generated
18851885
from inheriting constructors from a base class of \tcode{D}
1886-
while \tcode{F1} is not, and
1886+
while $\tcode{F}_1$ is not, and
18871887
for each explicit function argument,
1888-
the corresponding parameters of \tcode{F1} and \tcode{F2}
1888+
the corresponding parameters of $\tcode{F}_1$ and $\tcode{F}_2$
18891889
are either both ellipses or have the same type,
18901890
or, if not that,
18911891

18921892
\item
1893-
\tcode{F1} is generated from a
1893+
$\tcode{F}_1$ is generated from a
18941894
\grammarterm{deduction-guide}\iref{over.match.class.deduct}
1895-
and \tcode{F2} is not, or, if not that,
1895+
and $\tcode{F}_2$ is not, or, if not that,
18961896

18971897
\item
1898-
\tcode{F1} is the copy deduction candidate\iref{over.match.class.deduct}
1899-
and \tcode{F2} is not, or, if not that,
1898+
$\tcode{F}_1$ is the copy deduction candidate\iref{over.match.class.deduct}
1899+
and $\tcode{F}_2$ is not, or, if not that,
19001900

19011901
\item
1902-
\tcode{F1} is generated from a non-template constructor
1903-
and \tcode{F2} is generated from a constructor template.
1902+
$\tcode{F}_1$ is generated from a non-template constructor
1903+
and $\tcode{F}_2$ is generated from a constructor template.
19041904
\begin{example}
19051905
\begin{codeblock}
19061906
template <class T> struct A {

0 commit comments

Comments
 (0)