C++ Utilities
4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
conversion
types.h
Go to the documentation of this file.
1
#ifndef CONVERSION_UTILITIES_TYPES_H
2
#define CONVERSION_UTILITIES_TYPES_H
3
4
#include <cstdint>
5
9
typedef
std::int8_t
sbyte
;
10
14
typedef
std::uint8_t
byte
;
15
19
typedef
std::int16_t
int16
;
20
24
typedef
std::int32_t
int32
;
25
29
typedef
std::int64_t
int64
;
30
34
typedef
std::intptr_t
intptr
;
35
39
typedef
std::uint16_t
uint16
;
40
44
typedef
std::uint32_t
uint32
;
45
49
typedef
std::uint64_t
uint64
;
50
54
typedef
std::uintptr_t
uintptr
;
55
56
#if __SIZEOF_FLOAT__ == 4
57
60
typedef
float
float32;
61
#else
62
#error "Unable to define float32!"
63
#endif
64
65
#if __SIZEOF_DOUBLE__ == 8
66
69
typedef
double
float64;
70
#else
71
#error "Unable to define float64!"
72
#endif
73
74
#endif // CONVERSION_UTILITIES_TYPES_H
int64
std::int64_t int64
signed 64-bit integer
Definition:
types.h:29
uint64
std::uint64_t uint64
unsigned 64-bit integer
Definition:
types.h:49
sbyte
std::int8_t sbyte
signed byte
Definition:
types.h:9
uint32
std::uint32_t uint32
unsigned 32-bit integer
Definition:
types.h:44
uintptr
std::uintptr_t uintptr
unsigned pointer
Definition:
types.h:54
int32
std::int32_t int32
signed 32-bit integer
Definition:
types.h:24
byte
std::uint8_t byte
unsigned byte
Definition:
types.h:14
intptr
std::intptr_t intptr
signed pointer
Definition:
types.h:34
int16
std::int16_t int16
signed 16-bit integer
Definition:
types.h:19
uint16
std::uint16_t uint16
unsigned 16-bit integer
Definition:
types.h:39
Generated on Thu Mar 14 2019 01:23:12 for C++ Utilities by
1.8.15