llvm::enum_seq

enum_seq overloads

Synopses

Declared in <llvm/ADT/Sequence.h>

Return a half-open sequence of enum values from Begin to End.

template<typename EnumT>
requires std::is_enum<EnumT>::value
constexpr
auto
enum_seq(
    EnumT Begin,
    EnumT End);
» more...

Return a half-open enum sequence even when EnumT is not marked iterable.

template<typename EnumT>
requires std::is_enum<EnumT>::value
constexpr
auto
enum_seq(
    EnumT Begin,
    EnumT End,
    force_iteration_on_noniterable_enum_t Force);
» more...

Return Value

Half-open iota_range of enum values []Begin, End).

Parameters

NameDescription
BeginFirst enumerator in the sequence.
EndPast-the-end enumerator (not included).
ForceTag that opts into iterating enums without enum_iteration_traits.