• EnumTest Namespace
  • EnumTest Namespace

    This namespace is used to test the support of c++11 enumerations. More...

    Header: #include <EnumTest>

    Types

    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 }

    Detailed Description

    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.

    Type Documentation

    enum EnumTest::ByteEnum : unsigned char

    An enumeration using new C++11 features: The underlying type is unsigned char

    ConstantValueDescription
    EnumTest::ByteA0The first value
    EnumTest::ByteB1The second value
    EnumTest::ByteC2The third value

    enum EnumTest::PlainSimpleEnum

    A simple enumeration without any c++11 features

    ConstantValueDescription
    EnumTest::SimpleA0The first value
    EnumTest::SimpleB1The second value
    EnumTest::SimpleC2The third value

    enum class EnumTest::StrongByteEnum : ByteEnum

    An enumeration using new C++11 features: A strong typed enumeration with ByteEnum as underlying type.

    ConstantValueDescription
    EnumTest::StrongByteEnum::A0The first value
    EnumTest::StrongByteEnum::B1The second value
    EnumTest::StrongByteEnum::C2The third value

    enum class EnumTest::StrongEnum

    An enumeration using new C++11 features: A strong typed enumeration.

    ConstantValueDescription
    EnumTest::StrongEnum::A0The first value
    EnumTest::StrongEnum::B1The second value
    EnumTest::StrongEnum::C2The third value

    enum class EnumTest::StrongIntEnum : int

    An enumeration using new C++11 features: A strong typed enumeration with int as underlying type.

    ConstantValueDescription
    EnumTest::StrongIntEnum::A0The first value
    EnumTest::StrongIntEnum::B1The second value
    EnumTest::StrongIntEnum::C2The third value