C++ Supersets

C++ Supersets


Classes

Templates

Supersets

Hierarchy of Generalization


Supersets are Templates of Templates

Supersets directly support generic programming

in the form of using templates as parameters

Superset allows a template to be a parameter

in the definition of other templates

Supersets can be used for a wide range of general

concepts and simple ways to combine them


A template generated from a superset is an ordinary

template

  

one template example


superset<templatename T>
     
       T<typename C>              
            …

       T<typename B>
            …

 

several templates example

superset<templatename T, templatename S>

       T<typename A>
            …

       S<typename D>
            …

Comments

Popular posts from this blog

Hybrid Markup Language

Stream - Syntax-Oriented Language

iTeraTor Universal Data Language