Simbody  3.5
SimTK::ArrayIndexTraits< short > Struct Template Reference

Specialization of ArrayIndexTraits for (signed) short used as an index. More...

Public Types

typedef short size_type
 
typedef short difference_type
 

Static Public Member Functions

static size_type max_size ()
 

Detailed Description

template<>
struct SimTK::ArrayIndexTraits< short >

Specialization of ArrayIndexTraits for (signed) short used as an index.

In contrast to unsigned short, here the max size is 32767 so the index difference range -32766..+32766 still fits in a short so we don't need a wider type for difference_type.

Member Typedef Documentation

typedef short SimTK::ArrayIndexTraits< short >::size_type
typedef short SimTK::ArrayIndexTraits< short >::difference_type

Member Function Documentation

static size_type SimTK::ArrayIndexTraits< short >::max_size ( )
inlinestatic

The documentation for this struct was generated from the following file: