struct MappingTraits

Declaration

template <class T>
struct MappingTraits { /* full declaration omitted */ };

Description

This class should be specialized by any type that needs to be converted to/from a YAML mapping. For example: struct MappingTraits <MyStruct > { static void mapping(IO &io , MyStruct &s ) { io.mapRequired("name", s.name); io.mapRequired("size", s.size); io.mapOptional("age", s.age); } };

Declared at: llvm/include/llvm/Support/YAMLTraits.h:60

Templates

T