MADNESS  0.10.1
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
madness::detail::is_functor< fnT, Enabler > Struct Template Reference

#include <function_traits.h>

Public Types

typedef char(& no)[2]
 
typedef char(& yes)[1]
 

Static Public Member Functions

template<typename >
static no deduce (...)
 
template<typename U >
static yes deduce (char(*)[sizeof(&U::operator())])
 

Static Public Attributes

static const bool value = sizeof(deduce<fnT>(0)) == sizeof(yes)
 

Member Typedef Documentation

◆ no

template<typename fnT , typename Enabler = void>
typedef char(& madness::detail::is_functor< fnT, Enabler >::no)[2]

◆ yes

template<typename fnT , typename Enabler = void>
typedef char(& madness::detail::is_functor< fnT, Enabler >::yes)[1]

Member Function Documentation

◆ deduce() [1/2]

template<typename fnT , typename Enabler = void>
template<typename >
static no madness::detail::is_functor< fnT, Enabler >::deduce (   ...)
static

◆ deduce() [2/2]

template<typename fnT , typename Enabler = void>
template<typename U >
static yes madness::detail::is_functor< fnT, Enabler >::deduce ( char(*)  [sizeof(&U::operator())])
static

Member Data Documentation

◆ value

template<typename fnT , typename Enabler = void>
const bool madness::detail::is_functor< fnT, Enabler >::value = sizeof(deduce<fnT>(0)) == sizeof(yes)
static

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