Public Types | Static Private Member Functions

LibGeoDecomp::APITraits::HasValueFunction< T, RESULT > 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::value > *)
template<typename U >
static int func (...)

Detailed Description

template<typename T, typename RESULT>
class LibGeoDecomp::APITraits::HasValueFunction< T, RESULT >

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 >
anonymous enum
Enumerator:
value 

Member Function Documentation

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

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