Public Types | Static Private Member Functions

LibGeoDecomp::APITraits::HasLookupMemberFunction< T, RESULT, PARAM > Class Template Reference

Type trait which allows external code to detect if a class has a member function value(). More...

#include <apitraits.h>

List of all members.

Public Types

enum  { value = sizeof(func<T>(0)) == sizeof(char) }

Static Private Member Functions

template<typename U >
static char func (Check< U,&U::lookup > *)
template<typename U >
static int func (...)

Detailed Description

template<typename T, typename RESULT, typename PARAM>
class LibGeoDecomp::APITraits::HasLookupMemberFunction< T, RESULT, PARAM >

Type trait which allows external code to detect if a class has a member function value().

Gratefully based off http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Member_Detector


Member Enumeration Documentation

template<typename T , typename RESULT , typename PARAM >
anonymous enum
Enumerator:
value 

Member Function Documentation

template<typename T , typename RESULT , typename PARAM >
template<typename U >
static char LibGeoDecomp::APITraits::HasLookupMemberFunction< T, RESULT, PARAM >::func ( Check< U,&U::lookup > *   )  [static, private]
template<typename T , typename RESULT , typename PARAM >
template<typename U >
static int LibGeoDecomp::APITraits::HasLookupMemberFunction< T, RESULT, PARAM >::func (   ...  )  [static, private]

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