10 #if !defined(SG14_TYPE_TRAITS_H) 11 #define SG14_TYPE_TRAITS_H 1 13 #include <type_traits> 23 using common_type_t =
typename std::common_type<T ...>::type;
29 template<
bool C,
class ... T>
30 using enable_if_t =
typename std::enable_if<C, T ...>::type;
35 template<
class A,
class B>
36 constexpr
bool identical(
const A& a,
const B& b)
38 static_assert(std::is_same<A, B>::value,
"different types");
44 #endif // SG14_TYPE_TRAITS_H study group 14 of the C++ working group
Definition: const_integer.h:22