How to find out the number of enum members?
Let the class set enum : enum a{a1,a2,a3,a4,a5}; , and in another class there is a method that iterates over vector values by members of a with the help of for(int...) . But if I then increase the number of members a , then I will have to change this in the method. And I would like to set the size of the vector to the size of a .
Or find out which element is the last.