Thread
:
Get amount of rows in enum
View Single Post
Author
Message
SomePanns
Senior Member
Join Date: Dec 2013
05-25-2016 , 13:17 Get amount of rows in enum
#
1
So, I'm trying to figure out how to count the amount of "rows" there's in a specific enum.
For example:
Code:
enum EnumRows { VAR1=0, VAR2, VAR3, VAR4 };
In this case, there are 4 "rows" in the enum, but how would I count that with a function?
SomePanns
View Public Profile
Send a private message to SomePanns
Find More Posts by SomePanns