struct ScalarEnumerationTraits
Declaration
template <typename T, typename Enable = void>
struct ScalarEnumerationTraits { /* full declaration omitted */ };
Description
This class should be specialized by any integral type that converts to/from a YAML scalar where there is a one-to-one mapping between in-memory values and a string in YAML. For example: struct ScalarEnumerationTraits <Colors > { static void enumeration(IO &io , Colors &value ) { io.enumCase(value, "red", cRed); io.enumCase(value, "blue", cBlue); io.enumCase(value, "green", cGreen); } };
Declared at: llvm/include/llvm/Support/YAMLTraits.h:104
Templates
- T
- Enable = void