19template <
typename EnumT>
25template <Enumeration EnumT>
31template <
typename EnumT>
37template <HasOrdinality EnumT>
39 return std::bit_width(
40 static_cast<std::underlying_type_t<EnumT>
>(ordinalCount<EnumT>() - 1));
48 return static_cast<std::underlying_type_t<decltype(e)
>>(e);
55template <HasOrdinality EnumT>
64 Iterator& operator++() {
69 bool operator==(
const Iterator& other)
const =
default;
73 Iterator begin()
const {
76 Iterator end()
const {
77 return Iterator{
static_cast<EnumT
>(ordinalCount<EnumT>())};
Definition YogaEnums.h:20
Definition YogaEnums.h:32
bool operator==(const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept
Definition json.hpp:14737
Definition Benchmark.cpp:19
constexpr int32_t bitCount()
Definition YogaEnums.h:38
constexpr auto to_underlying(Enumeration auto e) noexcept
Definition YogaEnums.h:47
auto ordinals()
Definition YogaEnums.h:56
constexpr int32_t ordinalCount()
__inline__ __device__ uint3 operator*(uint3 a, dim3 b)
Definition slang-cuda-prelude.h:4314