~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty

« back to all changes in this revision

Viewing changes to yo/classtemplates/cirque.yo

  • Committer: Package Import Robot
  • Author(s): tony mancill, Frank B. Brokken, tony mancill
  • Date: 2014-01-18 08:55:27 UTC
  • mfrom: (1.1.26)
  • Revision ID: package-import@ubuntu.com-20140118085527-ph5upqqn423cmnmz
Tags: 9.8.0-1
[ Frank B. Brokken ]
* New upstream release, adds a section about static polymorphism, removes
  the concrete/a2x section, and removes C++11 indicators from the section
  headers. 

[ tony mancill ]
* Use debhelper 9.
* Tweak build-deps for g++ to use >= 4.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
matched in sequence with the list of template type arguments provided when
28
28
defining objects of such a class template. Example:
29
29
        verb(
30
 
    template <typename Type1, typename Type2, typename Type3>
31
 
    class MultiTypes
32
 
    {
33
 
        ...
34
 
    };
 
30
template <typename Type1, typename Type2, typename Type3>
 
31
class MultiTypes
 
32
{
 
33
    ...
 
34
};
35
35
 
36
 
    MultiTypes<int, double, std::string> multiType;
37
 
        // Type1 is int, Type2 is double, Type3 is std::string
 
36
MultiTypes<int, double, std::string> multiType;
 
37
    // Type1 is int, Type2 is double, Type3 is std::string
38
38
        )
39
39
    it() Inside the template parameter list we find the emi(formal type) name
40
40
(tt(Data) for tt(CirQue)). It is a formal (type) name, like the formal types