C++ Language/Type/Enumeration

A traditional enumeration was written as, but modern code writes it as. In the modern way, values must be fully-qualified as  when they are used.

Additional information about enumeration (includes interactive examples)