9 #ifndef ALPS_TYPE_TRAITS_HAS_VALUE_TYPE_H 10 #define ALPS_TYPE_TRAITS_HAS_VALUE_TYPE_H 12 #include <type_traits> 17 template<
typename U>
static char check(
typename U::value_type *);
18 template<
typename U>
static double check(...);
19 typedef std::integral_constant<bool, sizeof(char) == sizeof(check<T>(0))>
type;
20 constexpr
static bool value = type::value;
25 #endif // ALPS_TYPE_TRAITS_HAS_VALUE_TYPE_H
static constexpr bool value
static char check(typename U::value_type *)
std::integral_constant< bool, sizeof(char)==sizeof(check< T >0))> type