File: subtle.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (12 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
In section ref(DISTINGUISH) a special application of the keyword ti(typename)
was discussed. There we learned that it is not only used to define a name for
a (complex) type, but also to distinguish types defined by class templates
from members defined by class templates.  In this section another application
is introduced In section ref(TYPERES) we cover the problem of how to refer to
base class templates from derived class templates.

    In addition to the special applications of tt(typename) section
ref(DOTTEMP) introduces some new syntax that is related to the extended use of
the keyword tt(typename): tt(::template, .template) and tt(->template) are
used to inform the compiler that a name used inside a template is itself a
class template.