Namespaces

Functions

  • bool IsSupported ()

    The enum value check uses clang/gcc's __PRETTY_FUNCTION__ feature, and only

    certain versions of the compilers are supported.

    Defined at line 124 of file ../../src/ui/lib/escher/third_party/enum_utils/enum_utils.h

  • template <typename E, auto Begin = kDefaultEnumValueBegin, auto End = kDefaultEnumValueEnd, auto... Ints>
    size_t CountEnumElement ()

    Count number of elements in an enum / enum class type |E|.

    This compile-time function checks all the values in sequence {Begin,

    Begin + 1, ..., End - 1} to count all defined enum values at compilation

    time.

    Defined at line 142 of file ../../src/ui/lib/escher/third_party/enum_utils/enum_utils.h

  • template <typename E, auto Begin = kDefaultEnumValueBegin, auto End = kDefaultEnumValueEnd, auto... Ints>
    std::optional<decltype(Begin)> MaxEnumElementValue ()

    Get the maximum element in an enum / enum class type |E|.

    This compile-time function checks all the values in sequence {Begin,

    Begin + 1, ..., End - 1} to find the maximum defined enum values at

    compilation time.

    Defined at line 157 of file ../../src/ui/lib/escher/third_party/enum_utils/enum_utils.h

  • template <typename Eauto Begin = kDefaultEnumValueBeginauto End = kDefaultEnumValueEndauto... Ints>
    std::optional<decltype(Begin)> MinEnumElementValue ()

    Get the minimum element in an enum / enum class type |E|.

    This compile-time function checks all the values in sequence {Begin,

    Begin + 1, ..., End - 1} to find the minimum defined enum values at

    compilation time.

    Defined at line 172 of file ../../src/ui/lib/escher/third_party/enum_utils/enum_utils.h