Enum member Enumap.length
The number of entries in the Enumap
Declaration
struct Enumap { // ... enum length = EnumMembers!K.length; // ... }
Example
Assuming Element consists of air, earth, water, and fire (4 members):
static assert(Enumap!(Element, int).length == 4);
Authors
Ryan Roden-Corrent (rcorre)
Copyright
© 2015, Ryan Roden-Corrent
License
MIT