54 static_assert(std::numeric_limits<uptrint_t>::digits >=
sizeof(
void*)*CHAR_BIT,
55 "Pointer encoding requires a pointer-wide integer");
71 template<
class IntType>
83 static const signed char min = SCHAR_MIN;
85 static const signed char max = SCHAR_MAX;
98 static const unsigned char min = 0;
100 static const unsigned char max = UCHAR_MAX;
113 static const signed short int min = SHRT_MIN;
115 static const signed short int max = SHRT_MAX;
128 static const unsigned short int min = 0;
130 static const unsigned short int max = USHRT_MAX;
143 static const signed int min = INT_MIN;
145 static const signed int max = INT_MAX;
158 static const unsigned int min = 0;
160 static const unsigned int max = UINT_MAX;
170 else if (n < USHRT_MAX)
178 if ((n > SCHAR_MIN) && (n < SCHAR_MAX))
180 else if ((n > SHRT_MIN) && (n < SHRT_MAX))
signed char stype
Corresponding signed type.
static const signed char max
Maximal value.
static const signed char min
Minimal value.
unsigned char utype
Corresponding unsigned type.
static const IntType description
Description of type.
static const signed int max
Maximal value.
static const IntType description
Description of type.
signed int stype
Corresponding signed type.
static const signed int min
Minimal value.
unsigned int utype
Corresponding unsigned type.
static const signed short int max
Maximal value.
static const IntType description
Description of type.
signed short int stype
Corresponding signed type.
unsigned short int utype
Corresponding unsigned type.
static const signed short int min
Minimal value.
static const IntType description
Description of type.
static const unsigned char max
Maximal value.
static const unsigned char min
Minimal value.
unsigned char utype
Corresponding unsigned type.
signed char stype
Corresponding signed type.
static const unsigned int max
Maximal value.
signed int stype
Corresponding signed type.
static const unsigned int min
Minimal value.
static const IntType description
Description of type.
unsigned int utype
Corresponding unsigned type.
static const unsigned short int min
Minimal value.
unsigned short int utype
Corresponding unsigned type.
static const IntType description
Description of type.
static const unsigned short int max
Maximal value.
signed short int stype
Corresponding signed type.
Traits to for information about integer types.
Support algorithms and datastructures
std::make_unsigned_t< ptrdiff_t > uptrint_t
Unsigned integer for pointer encodings.
IntType u_type(unsigned int n)
Return type required to represent n.
IntType s_type(signed int n)
Return type required to represent n.
IntType
Description of integer types.
@ IT_CHAR
char integer type
@ IT_SHRT
short integer type
Gecode toplevel namespace