Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-01-24 07:38:54

On 01/24/2005 04:04 AM, Pavel Vozenilek wrote:

>The problem is what syntax to use to define Multiton, like:
> typename T,
> typename Parameters = TYPELIST2(std::string, std::string),
> typename Lifetime = ...
>class Multiton
> ....
>and how to 'generate' flat structure from the typelist.
>(The structure would be then used as key in lookup map.)


described here:

as a superclass of Multiton. The instantiations of last argument
would define the singleton's for the various elements in the typelist
while inheriting the succeeding ones in the typelist.
Accessing the ith-singleton can be done with the code in:

in .
The code in get_ith_head_test.cpp can be used as a model
for making a get<i> member function for accessing the
i-th singleton.



Boost list run by bdawes at, gregod at, cpdaniel at, john at