STLdoc
STLdocumentation
|
#include <safeint_internal.h>
Public Types | |
enum | { isSigned = ( (T)(-1) < 0 ), is64Bit = ( sizeof(T) == 8 ), is32Bit = ( sizeof(T) == 4 ), is16Bit = ( sizeof(T) == 2 ), is8Bit = ( sizeof(T) == 1 ), isLT32Bit = ( sizeof(T) < 4 ), isLT64Bit = ( sizeof(T) < 8 ), isInt8 = ( sizeof(T) == 1 && isSigned ), isUint8 = ( sizeof(T) == 1 && !isSigned ), isInt16 = ( sizeof(T) == 2 && isSigned ), isUint16 = ( sizeof(T) == 2 && !isSigned ), isInt32 = ( sizeof(T) == 4 && isSigned ), isUint32 = ( sizeof(T) == 4 && !isSigned ), isInt64 = ( sizeof(T) == 8 && isSigned ), isUint64 = ( sizeof(T) == 8 && !isSigned ), bitCount = ( sizeof(T)*8 ), isBool = NumericType<T>::isBool } |
Static Public Attributes | |
static const T | maxInt = isSigned ? ((T)~((T)1 << (T)(bitCount-1))) : ((T)(~(T)0)) |
static const T | minInt = isSigned ? ((T)((T)1 << (T)(bitCount-1))) : ((T)0) |
anonymous enum |
Enumerator | |
---|---|
isSigned | |
is64Bit | |
is32Bit | |
is16Bit | |
is8Bit | |
isLT32Bit | |
isLT64Bit | |
isInt8 | |
isUint8 | |
isInt16 | |
isUint16 | |
isInt32 | |
isUint32 | |
isInt64 | |
isUint64 | |
bitCount | |
isBool |
|
static |
|
static |