altraits.h 262 B

1234567891011121314
  1. #ifndef COMMON_ALTRAITS_H
  2. #define COMMON_ALTRAITS_H
  3. namespace al {
  4. template<typename T>
  5. struct type_identity { using type = T; };
  6. template<typename T>
  7. using type_identity_t = typename type_identity<T>::type;
  8. } // namespace al
  9. #endif /* COMMON_ALTRAITS_H */