411 REFERENCE · Wikibooks
C++ Language/Type/Enumeration
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
A traditional enumeration was written as enum ERType {ZERO=0, ONE, TWO};, but modern code writes it as enum class ERType {...};.
In the modern way, values must be fully-qualified as ERType::TWO when they are used.
Additional information about enumeration (includes interactive examples)