This namespace is used to test the support of c++11 enumerations. More...
| Header: | #include <EnumTest> |
| enum | ByteEnum { ByteA, ByteB, ByteC } |
| enum | PlainSimpleEnum { SimpleA, SimpleB, SimpleC } |
| enum class | StrongByteEnum { A, B, C } |
| enum class | StrongEnum { A, B, C } |
| enum class | StrongIntEnum { A, B, C } |
This namespace is used to test the support of c++11 enumerations.
It contains the following enumerations:
If some of them are shown as class or not shown in this namespace overview at all. C++11 macros are not supported yet.
An enumeration using new C++11 features: The underlying type is unsigned char
| Constant | Value | Description |
|---|---|---|
EnumTest::ByteA | 0 | The first value |
EnumTest::ByteB | 1 | The second value |
EnumTest::ByteC | 2 | The third value |
A simple enumeration without any c++11 features
| Constant | Value | Description |
|---|---|---|
EnumTest::SimpleA | 0 | The first value |
EnumTest::SimpleB | 1 | The second value |
EnumTest::SimpleC | 2 | The third value |
An enumeration using new C++11 features: A strong typed enumeration with ByteEnum as underlying type.
| Constant | Value | Description |
|---|---|---|
EnumTest::StrongByteEnum::A | 0 | The first value |
EnumTest::StrongByteEnum::B | 1 | The second value |
EnumTest::StrongByteEnum::C | 2 | The third value |
An enumeration using new C++11 features: A strong typed enumeration.
| Constant | Value | Description |
|---|---|---|
EnumTest::StrongEnum::A | 0 | The first value |
EnumTest::StrongEnum::B | 1 | The second value |
EnumTest::StrongEnum::C | 2 | The third value |
An enumeration using new C++11 features: A strong typed enumeration with int as underlying type.
| Constant | Value | Description |
|---|---|---|
EnumTest::StrongIntEnum::A | 0 | The first value |
EnumTest::StrongIntEnum::B | 1 | The second value |
EnumTest::StrongIntEnum::C | 2 | The third value |