Is********@gmail.com wrote:
Jeff Faust wrote:
Is********@gmail.com wrote:
I dont know how to use typelist.
Well, what would you like to use it for?
Refer to Alexandrescu's 'Modern C++ Design' for a good description.
Jeff
I'm read this book now.
A typelist is a mechanism to group types together. You could use this
to perform compile-time checks based on what typelist a particular type
belongs to. I've also used a typelist implementation to create a
type-maintaining linked-list structure.
Alexandrescu also uses typelists to create a "ad hoc visitor".
Jeff