GraphLab: Distributed Graph-Parallel API
2.1
|
This tests that a type F matches a specification for a function type or implements a specification for a functor type. More...
#include <graphlab/util/generics/test_function_or_functor_type.hpp>
Static Public Member Functions | |
template<typename T > | |
static char | test1 (SFINAE1< T,&T::operator()>*) |
template<typename T > | |
static int | test1 (...) |
Static Public Attributes | |
static const bool | value |
This tests that a type F matches a specification for a function type or implements a specification for a functor type.
Where F is the type to test:
For instance,
There is an additional "const" variant test_function_or_const_functor_1 which requires operator() to be a const function. i.e.:
Both variants have a 2 argument version test_function_or_functor_2 and test_function_or_const_functor_2 which take an additional template argument for the second argument.
Definition at line 99 of file test_function_or_functor_type.hpp.
|
static |
Definition at line 111 of file test_function_or_functor_type.hpp.