ArrayIndexTraits< signed char > Struct Template Reference

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

#include <Array.h>

List of all members.

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 difference_type
typedef signed char size_type

Member Function Documentation

static size_type max_size (  )  [inline, static]

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

Generated on Thu Aug 12 16:38:03 2010 for SimTKcore by  doxygen 1.6.1