File: using.yo

package info (click to toggle)
c%2B%2B-annotations 12.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,044 kB
  • sloc: cpp: 24,337; makefile: 1,517; ansic: 165; sh: 121; perl: 90
file content (18 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
In the previous sections the definition and some of the features of typelists
were discussed. Most bf(C++) programmers consider typelists both
exciting and an intellectual challenge, honing their skills in the area of
recursive programming.

But there's more to typelist than a mere intellectual challenge. In the final
sections of this chapter the following topics are covered:
    itemization(
    it() Creating classes from a typelist.nl()
       Here the aim is to construct a new class consisting of instantiations
        of an existing basic template for each of the types mentioned in a
        provided typelist;
    it() Accessing data members from the thus constructed conglomerate class
        by index, rather than name.
    )
    Again, much of the material covered by these sections was inspired by
        hi(Alexandrescu, A.)
    Alexandrescu's (2001) book.