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

Detailed Description

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

The maximum enumerator in an enum.

This class defines the maximum enumerator (the enumerator with the biggest integral value) in the enum denoted by Type. The default behaviour is to use Type::fcppt_maximum. Specialize this class to change that.

Note
Unfortunately, there is no way to automatically retrieve the maximum enumerator in an enum in C++.
Template Parameters
TypeMust be an enum type
Inheritance diagram for fcppt::enum_::max_value< Type >: