Skip to content

Commit 9fa6c9e

Browse files
burblebeetkoeppe
authored andcommitted
CWG2682 Templated function vs. function template
1 parent 8623a6a commit 9fa6c9e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,8 +1751,8 @@
17511751
\end{example}
17521752

17531753
\pnum
1754-
Return type deduction for a templated entity
1755-
that is a function or function template with a placeholder in its
1754+
Return type deduction for a templated
1755+
function with a placeholder in its
17561756
declared type occurs when the definition is instantiated even if the function
17571757
body contains a \tcode{return} statement with a non-type-dependent operand.
17581758
\begin{note}

source/templates.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@
172172
templated entity is a templated entity.
173173
\end{note}
174174

175+
A \defnadj{templated}{function} is
176+
a function template or a function that is templated.
177+
A \defnadj{templated}{class} is
178+
a class template or a class that is templated.
179+
A \defnadj{templated}{variable} is
180+
a variable template or a variable that is templated.
181+
175182
\pnum
176183
A \grammarterm{template-declaration} is written
177184
in terms of its template parameters.

0 commit comments

Comments
 (0)