Is it possible to determine the cardinality of a c++ enum class:
enum class
enum class Example { A, B, C, D, E };
I tried to use si
si
One trick you can try is to add a enum value at the end of your list and use that as the size. In your example
enum class Example { A, B, C, D, E, ExampleCount };