c++ - List of base classes for use with variadic templates -
Is there a way to access all the base classes in C ++? Since variadic templates are available I think it will be for example ___BASE, which is a type of variable that is obtained from the current class, will also enable an inquiry whether a class or its base class is of some type . Is it possible before or is I missing something here, why is it not possible?
A common mechanism in the language that will tell you all the base classes, though you can all members of your class hierarchy You are free to add a suitable type-tof, which will provide this information (such as TypePef a tubal whose argument type is ancestors of ancestors and ancestors) - you can probably write a little bit of the mix.
To check whether something is the basis of some other, it is already part of the standard in the size of Std :: is_base_of type attribute.
Comments
Post a Comment