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

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

Public Types

typedef char size_type
 
typedef signed char difference_type
 

Static Public Member Functions

static size_type max_size ()
 

Detailed Description

template<>
struct SimTK::ArrayIndexTraits< char >

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.

Member Typedef Documentation

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

Member Function Documentation

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

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