1 #ifndef STARTUP_HELPER_TEMPLATES 2 #define STARTUP_HELPER_TEMPLATES 6 typedef void (*VoidFnPtr)();
11 static constexpr
const VoidFnPtr value =
nullptr;
13 template<
class T>
struct GetInitFnPtr<T, decltype(void(T::init()))> {
15 static constexpr
const VoidFnPtr value = &T::init;
21 static constexpr
const VoidFnPtr value =
nullptr;
25 static constexpr
const VoidFnPtr value = &T::deinit;
29 template<
class T,
class EN =
void>
struct HasMetaObject : std::false_type {
34 typename std::enable_if<std::is_same<const QMetaObject, decltype(T::staticMetaObject)>::value>::type> : std::true_type {
40 #endif // STARTUP_HELPER_TEMPLATES Definition: startup_helper_templates.h:4
Definition: startup_helper_templates.h:19
Definition: startup_helper_templates.h:9