mpl/converters.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_MPL_CONVERTERS_HPP_
13 #define ECL_MPL_CONVERTERS_HPP_
14 
15 /*****************************************************************************
16 ** Namespaces
17 *****************************************************************************/
18 
19 namespace ecl {
20 
21 /*****************************************************************************
22 ** Signed to Unsigned Template MetaConversions
23 *****************************************************************************/
24 
26 template <typename Signed> struct Unsigned {};
27 
29 template <> struct Unsigned<char> { typedef unsigned char type; };
31 template <> struct Unsigned<short> { typedef unsigned short type; };
33 template <> struct Unsigned<int> { typedef unsigned int type; };
35 template <> struct Unsigned<long> { typedef unsigned long type; };
37 template <> struct Unsigned<long long> { typedef unsigned long long type; };
38 
40 template <> struct Unsigned<unsigned char> { typedef unsigned char type; };
42 template <> struct Unsigned<unsigned short> { typedef unsigned short type; };
44 template <> struct Unsigned<unsigned int> { typedef unsigned int type; };
46 template <> struct Unsigned<unsigned long> { typedef unsigned long type; };
48 template <> struct Unsigned<unsigned long long> { typedef unsigned long long type; };
49 
50 } // namespace ecl
51 
52 #endif /* ECL_MPL_CONVERTERS_HPP_ */


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:37