possible values of an enm type?
enum Foo { One, Two, Three, Last }; for ( int fooInt = One; fooInt != Last; fooInt++ ) { Foo foo = static_cast<Foo>(fooInt); // ..
Just curious, why would you want to do that?
I think the easiest way is to put them in a sequence
Обсуждают сегодня