Skip to content

Glossary: C++ Beyond the Basics

Scoped enumeration

Also written: enum class, scoped enumerations

An `enum class`: a type with a fixed list of named values written with the type name first, such as `ParseError::bad_quantity`. It doesn't convert to `int` by itself.

Where the book teaches it

Related terms

std::expected