Simbody  3.6
SimTK::ArrayIndexTraits< unsigned char > Struct Template Reference

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

Public Types

typedef unsigned char size_type
 
typedef short difference_type
 

Static Public Member Functions

static size_type max_size ()
 

Detailed Description

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

Specialization of ArrayIndexTraits for unsigned char used as an index.

Here we don't have any bits to spare and we want to use the full max size of 255. The max index must then be 254, so the difference_type must hold -254..254 which takes a short.

Member Typedef Documentation

◆ size_type

typedef unsigned char SimTK::ArrayIndexTraits< unsigned char >::size_type

◆ difference_type

typedef short SimTK::ArrayIndexTraits< unsigned char >::difference_type

Member Function Documentation

◆ max_size()

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

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