Lumiera  0.pre.03
»edit your freedom«
InstantiateWithIndex< TYPES, _X_, BASE, i > Class Template Reference

#include "lib/meta/generator.hpp"

Description

template<class TYPES, template< class, class, uint > class _X_, class BASE = NullType, uint i = 0>
class lib::meta::InstantiateWithIndex< TYPES, _X_, BASE, i >

A Variation of InstantiateChained providing an incremented Index value template parameter.

This index can e.g. be used to store pointers in a dispatcher table in the Base class. Similar to InstantiateChained, this template builds a linear chain of inheritance. The user-provided template, which is to be instantiated for all types in the Typelist, now has to accept an additional third parameter (uint i).

Definition at line 165 of file generator.hpp.

+ Collaboration diagram for InstantiateWithIndex< TYPES, _X_, BASE, i >:

The documentation for this class was generated from the following file: