Simbody
3.7
|
Specialization of ArrayIndexTraits for unsigned
short
used as an index.
More...
Public Types | |
typedef unsigned short | size_type |
typedef int | difference_type |
Static Public Member Functions | |
static size_type | max_size () |
Specialization of ArrayIndexTraits for unsigned
short
used as an index.
We don't have any bits to spare here so we want to allow the full 65535 elements for an unsigned short indexed container. That means the index difference range is -65534..+65534 which doesn't fit in a short so we have to use an int for difference_type to accommodate the whole range.
typedef unsigned short SimTK::ArrayIndexTraits< unsigned short >::size_type |
typedef int SimTK::ArrayIndexTraits< unsigned short >::difference_type |
|
inlinestatic |