0

Is there a way to fetch the number of elements in an enum in C++11 at compile time? In my case the enum is a ordered bitmask enum, meaning that first element is 0x0000, next element is 0x0001 and so on.

nyarlathotep108
  • 5,275
  • 2
  • 26
  • 64

0 Answers0