LLVM  4.0.0
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
llvm::MDNode::HasCachedHash< NodeTy > Struct Template Reference
Collaboration diagram for llvm::MDNode::HasCachedHash< NodeTy >:
[legend]

Classes

struct  SFINAE
 

Public Types

typedef char Yes [1]
 
typedef char No [2]
 

Static Public Member Functions

template<class U >
static Yescheck (SFINAE< void(U::*)(unsigned),&U::setHash > *)
 
template<class U >
static Nocheck (...)
 

Static Public Attributes

static const bool value = sizeof(check<NodeTy>(nullptr)) == sizeof(Yes)
 

Detailed Description

template<class NodeTy>
struct llvm::MDNode::HasCachedHash< NodeTy >

Definition at line 730 of file Metadata.cpp.

Member Typedef Documentation

template<class NodeTy >
typedef char llvm::MDNode::HasCachedHash< NodeTy >::No[2]

Definition at line 732 of file Metadata.cpp.

template<class NodeTy >
typedef char llvm::MDNode::HasCachedHash< NodeTy >::Yes[1]

Definition at line 731 of file Metadata.cpp.

Member Function Documentation

template<class NodeTy >
template<class U >
static Yes& llvm::MDNode::HasCachedHash< NodeTy >::check ( SFINAE< void(U::*)(unsigned),&U::setHash > *  )
static
template<class NodeTy >
template<class U >
static No& llvm::MDNode::HasCachedHash< NodeTy >::check (   ...)
static

Member Data Documentation

template<class NodeTy >
const bool llvm::MDNode::HasCachedHash< NodeTy >::value = sizeof(check<NodeTy>(nullptr)) == sizeof(Yes)
static

Definition at line 739 of file Metadata.cpp.


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