Go to the documentation of this file.
24 #ifndef DEFINES_TYPE_HPP_INCLUDED
25 #define DEFINES_TYPE_HPP_INCLUDED
27 #include <type_traits>
33 struct voidize {
typedef void type; };
36 #define DEFINES_TYPE(TYPE) \
37 template <class C, class = void> \
38 struct defines_##TYPE : std::false_type {}; \
41 struct defines_##TYPE < \
43 typename internal::voidize<typename C::TYPE>::type \
44 > : std::true_type { };
46 #endif // DEFINES_TYPE_HPP_INCLUDED