EnumRankInfo

Provides the information about the rank of the members of an enum. The properties are all static and can be retrieved from a template alias.

Members

Static functions

count
size_t count()

Returns the member count. It's always equal to max + 1.

max
size_t max()

Returns the rank of the last member.

opIndex
size_t opIndex(E aMember)
size_t opIndex(E aMember)

Returns the rank of aMember.

opIndex
E opIndex(size_t aRank)

Returns the member at aRank.

Static variables

min
enum min;

Always returns 0.

Meta