#ifndef REXY_TRAITS_HPP #define REXY_TRAITS_HPP #include //is_same, decay, integral_constant, declval namespace rexy{ template struct is_type{ static std::true_type check(U*); static std::false_type check(...); static constexpr bool value = std::is_same*>()))>::value; }; template class U> struct is_template_type_helper{ static constexpr bool value = false; }; template class U, class... Args> struct is_template_type_helper,U>{ static constexpr bool value = true; }; template class U> struct is_template_type : public is_template_type_helper,U>{}; template class Tmpl> struct is_template_derived_type{ template static std::true_type test(Tmpl*); static std::false_type test(void*); static constexpr bool value = std::is_same*>(nullptr)))>::value; }; } #endif