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_ */
Embedded control libraries.
Primary template for signed to unsigned type metafunctions.
Definition: converters.hpp:26
unsigned char type
Definition: converters.hpp:29
unsigned long long type
Definition: converters.hpp:37
unsigned int type
Definition: converters.hpp:33
unsigned short type
Definition: converters.hpp:31
unsigned long type
Definition: converters.hpp:35


ecl_mpl
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:28