Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SimTK::ArrayIndexTraits< signed char > Struct Template Reference

Specialization of ArrayIndexTraits for signed char used as an index. More...

Public Types

typedef signed char size_type
 
typedef signed char difference_type
 

Static Public Member Functions

static size_type max_size ()
 

Detailed Description

template<>
struct SimTK::ArrayIndexTraits< signed char >

Specialization of ArrayIndexTraits for signed char used as an index.

In contrast with the unsigned char case which allows 255 elements, the max size here is 127 meaning the max index is 126 and the difference range is -126..126 which still fits in a signed char so we don't need a wider type for difference_type.

Member Typedef Documentation

typedef signed char SimTK::ArrayIndexTraits< signed char >::size_type
typedef signed char SimTK::ArrayIndexTraits< signed char >::difference_type

Member Function Documentation

static size_type SimTK::ArrayIndexTraits< signed char >::max_size ( )
inlinestatic

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