Freundlich's C++ toolkit
fcppt::enum_::size< Type > Struct Template Reference

Detailed Description

template<typename Type>
struct fcppt::enum_::size< Type >

The number of enumerators in an enum.

This class defines the number of enumerators in the enum denoted by Type. The default behavior is to set it to use fcppt::enum_::max_value<Type> + 1. Specialize this class to change that.

Unfortunately, there is no way to automatically retrieve the number of enumerators in an enum in C++.
Template Parameters
TypeMust be an enum type
Inheritance diagram for fcppt::enum_::size< Type >: