LLVM 23.0.0git
llvm::EnumStringDef< T, NumStrs > Struct Template Reference

Compile-time data representation of enum entries. More...

#include "llvm/ADT/Enum.h"

Public Attributes

std::array< std::string_view, NumStrs > Names
T Value

Detailed Description

template<typename T, unsigned NumStrs = 1>
struct llvm::EnumStringDef< T, NumStrs >

Compile-time data representation of enum entries.

Only use for constexpr variables passed to BUILD_ENUM_STRINGS, do NOT access the created variable directly in code! The idea is that this is only used at compile-time to build a more compact and relocation-free representation in the binary.

Definition at line 47 of file Enum.h.

Member Data Documentation

◆ Names

template<typename T, unsigned NumStrs = 1>
std::array<std::string_view, NumStrs> llvm::EnumStringDef< T, NumStrs >::Names

Definition at line 48 of file Enum.h.

◆ Value

template<typename T, unsigned NumStrs = 1>
T llvm::EnumStringDef< T, NumStrs >::Value

Definition at line 49 of file Enum.h.


The documentation for this struct was generated from the following file: