]> git.tdb.fi Git - libs/core.git/blob - source/core/meta.h
0034512b6ec2bea573ffbcc34115fc8562a5cac8
[libs/core.git] / source / core / meta.h
1 #ifndef MSP_CORE_META_H_
2 #define MSP_CORE_META_H_
3
4 namespace Msp {
5
6 template<typename T>
7 struct RemoveConst
8 { typedef T Type; };
9
10 template<typename T>
11 struct RemoveConst<const T>
12 { typedef T Type; };
13
14 template<typename T>
15 struct RemoveReference
16 { typedef T Type; };
17
18 template<typename T>
19 struct RemoveReference<T &>
20 { typedef T Type; };
21
22 } // namespace Msp
23
24 #endif