Simbody  3.4 (development)
SimTK::ArrayIndexTraits< unsigned long > Struct Template Reference

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

#include <Array.h>

List of all members.

Public Types

typedef unsigned long size_type
typedef long difference_type

Static Public Member Functions

static size_type max_size ()

Detailed Description

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

Specialization of ArrayIndexTraits for unsigned long used as an index.

Warning:
Different 64 bit platforms have different lengths for long. In particular, 64 bit MSVC++ has sizeof(long)==sizeof(int) while 64 bit gcc has sizeof(long)==sizeof(long long). We recommend that you avoid using long and unsigned long (ever, not just here) and instead use int or long long (or their unsigned versions) which are unambiguously 32 or 64 bits, resp.

Member Typedef Documentation

typedef unsigned long SimTK::ArrayIndexTraits< unsigned long >::size_type
typedef long SimTK::ArrayIndexTraits< unsigned long >::difference_type

Member Function Documentation

static size_type SimTK::ArrayIndexTraits< unsigned long >::max_size ( ) [inline, static]

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines