LLVM  6.0.0svn
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
llvm::yaml::has_ScalarTraits< T > Struct Template Reference

#include "llvm/Support/YAMLTraits.h"

Collaboration diagram for llvm::yaml::has_ScalarTraits< T >:
Collaboration graph
[legend]

Public Types

using Signature_input = StringRef(*)(StringRef, void *, T &)
 
using Signature_output = void(*)(const T &, void *, raw_ostream &)
 
using Signature_mustQuote = bool(*)(StringRef)
 

Static Public Member Functions

template<typename U >
static char test (SameType< Signature_input, &U::input > *, SameType< Signature_output, &U::output > *, SameType< Signature_mustQuote, &U::mustQuote > *)
 
template<typename U >
static double test (...)
 

Static Public Attributes

static bool const value
 

Detailed Description

template<class T>
struct llvm::yaml::has_ScalarTraits< T >

Definition at line 269 of file YAMLTraits.h.

Member Typedef Documentation

◆ Signature_input

template<class T >
using llvm::yaml::has_ScalarTraits< T >::Signature_input = StringRef (*)(StringRef, void*, T&)

Definition at line 271 of file YAMLTraits.h.

◆ Signature_mustQuote

template<class T >
using llvm::yaml::has_ScalarTraits< T >::Signature_mustQuote = bool (*)(StringRef)

Definition at line 273 of file YAMLTraits.h.

◆ Signature_output

template<class T >
using llvm::yaml::has_ScalarTraits< T >::Signature_output = void (*)(const T&, void*, raw_ostream&)

Definition at line 272 of file YAMLTraits.h.

Member Function Documentation

◆ test() [1/2]

template<class T >
template<typename U >
static char llvm::yaml::has_ScalarTraits< T >::test ( SameType< Signature_input, &U::input > *  ,
SameType< Signature_output, &U::output > *  ,
SameType< Signature_mustQuote, &U::mustQuote > *   
)
static

◆ test() [2/2]

template<class T >
template<typename U >
static double llvm::yaml::has_ScalarTraits< T >::test (   ...)
static

Member Data Documentation

◆ value

template<class T >
bool const llvm::yaml::has_ScalarTraits< T >::value
static
Initial value:
=
(sizeof(test<ScalarTraits<T>>(nullptr, nullptr, nullptr)) == 1)

Definition at line 284 of file YAMLTraits.h.


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