No, there is no way to find the maximum and minimum specific values ββof any enum in C ++. When such information is needed, it is often useful to determine the meaning of Last and First. For example,
enum MyPretendEnum { Apples, Oranges, Pears, Bananas, First = Apples, Last = Bananas };
You do not need to have named values ββfor each value between First and Last .
Jeff Yates 01 Oct '08 at 18:30 2008-10-01 18:30
source share