struct SequenceTraits
Declaration
template <typename T, typename EnableIf = void>
struct SequenceTraits { /* full declaration omitted */ };
Description
This class should be specialized by any type that needs to be converted to/from a YAML sequence. For example: template < > struct SequenceTraits <MyContainer > { static size_t size(IO &io , MyContainer &seq ) { return seq.size(); } static MyType & element(IO & , MyContainer &seq , size_t index) { if ( index >= seq.size() ) seq.resize(index+1); return seq[index]; } };
Declared at: llvm/include/llvm/Support/YAMLTraits.h:244
Templates
- T
- EnableIf = void