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 = ...
>and how to 'generate' flat structure from the typelist.
>(The structure would be then used as key in lookup map.)
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 http://boost-sandbox.sourceforge.net/vault/ .
The code in get_ith_head_test.cpp can be used as a model
for making a get<i> member function for accessing the
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk