aboutsummaryrefslogtreecommitdiffstats
path: root/common/altraits.h
blob: 7ce0422e6ce89f74a474998eeabcf70d497d05a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef COMMON_ALTRAITS_H
#define COMMON_ALTRAITS_H

namespace al {

template<typename T>
struct type_identity { using type = T; };

template<typename T>
using type_identity_t = typename type_identity<T>::type;

} // namespace al

#endif /* COMMON_ALTRAITS_H */