Simbody
|
Specialization of ArrayIndexTraits for char
used as an index.
More...
#include <Array.h>
Public Types | |
typedef char | size_type |
typedef signed char | difference_type |
Static Public Member Functions | |
static size_type | max_size () |
Specialization of ArrayIndexTraits for char
used as an index.
The C++ standard does not specify whether char
is a signed or unsigned type; here we'll limit its max size to 127 so that we don't have to use the non-standard high bit. That means it behaves just like the signed char case; if you want the full range to a size of 255, use unsigned char instead.
typedef char SimTK::ArrayIndexTraits< char >::size_type |
typedef signed char SimTK::ArrayIndexTraits< char >::difference_type |
static size_type SimTK::ArrayIndexTraits< char >::max_size | ( | ) | [inline, static] |