Interface Documentation
Version: invalid
Classes | Namespaces | Macros
static_verify.hh File Reference
#include <tuple>
Include dependency graph for static_verify.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  flecsi::util::is_tuple< T >
 Check if the object is a tuple. More...
 
struct  flecsi::util::is_tuple< std::tuple< T... > >
 Check if the object is a tuple. More...
 

Namespaces

 flecsi
 

Macros

#define FLECSI_MEMBER_CHECKER(X)
 Macro to check if the object has a member _*. More...
 

Macro Definition Documentation

◆ FLECSI_MEMBER_CHECKER

#define FLECSI_MEMBER_CHECKER (   X)
Value:
template<typename T> \
class has_member_##X \
{ \
struct F { \
int X; \
}; \
struct D : T, F {}; \
template<typename C, C> \
struct ChT; \
template<typename C> \
static char (&f(ChT<int F::*, &C::X> *))[1]; \
template<typename C> \
static char (&f(...))[2]; \
\
public: /* all outsiders need... */ \
static bool const value = sizeof(f<D>(0)) == 2; \
}

Macro to check if the object has a member _*.