include
ecl
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_ */
ecl::Unsigned< char >::type
unsigned char type
Definition:
converters.hpp:33
ecl::Unsigned
Primary template for signed to unsigned type metafunctions.
Definition:
converters.hpp:30
ecl::Unsigned< int >::type
unsigned int type
Definition:
converters.hpp:37
ecl::Unsigned< unsigned char >::type
unsigned char type
Definition:
converters.hpp:44
ecl::Unsigned< unsigned int >::type
unsigned int type
Definition:
converters.hpp:48
ecl::Unsigned< short >::type
unsigned short type
Definition:
converters.hpp:35
ecl
Embedded control libraries.
ecl::Unsigned< unsigned short >::type
unsigned short type
Definition:
converters.hpp:46
ecl_mpl
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:18