Compile‐time storage packing enum string entries and character data.

Synopsis

Declared in <llvm/ADT/Enum.h>

template<
    typename T,
    unsigned int NumStrs,
    size_t N,
    size_t StrLen>
struct EnumStringsStorage;

Member Functions

Name

Description

EnumStringsStorage [constructor]

Build compact storage from the compile‐time definition table Entries.

begin

Return a pointer to the first entry.

end

Return a pointer past the last entry.

operator[]

Return the entry at index Idx.

size

Return the number of enumerator entries.

Data Members

Name

Description

Data

Compact entries with relative offsets into Strs.

Strs

Contiguous character storage for all enumerator name strings.

Created with MrDocs