Module Enum
Provides classes representing C/C++ enums and enum constants.
Import path
Imports
| Type | Provides a hierarchy of classes for modeling C/C++ types. |
Classes
| Enum | A C/C++ enum [N4140 7.2]. For example, the types MyEnum and MyScopedEnum in: |
| EnumConstant | A C/C++ enumerator [N4140 7.2], also known as an enumeration constant. |
| LocalEnum | A C/C++ enum that is directly enclosed by a function. For example, the type MyLocalEnum in: void myFunction() { enum MyLocalEnum { MyLocalEnumConstant }; } |
| NestedEnum | A C/C++ enum that is declared within a class/struct. For example, the type MyNestedEnum in: class MyClass { public: enum MyNestedEnum { MyNestedEnumConstant }; }; |
| ScopedEnum | A C++ scoped enum, that is, an enum whose constants must be qualified with the name of the enum. For example, the type Color in: enum class Color { red, blue } |