Basic traits for the cisstVector containers.
#define VCT_CONTAINER_TRAITS_TYPEDEFS |
( |
|
type | ) |
|
Value:
typedef type value_type; \
typedef value_type & reference; \
typedef const value_type & const_reference; \
typedef value_type * pointer; \
typedef const value_type * const_pointer; \
typedef double NormType; \
typedef double AngleType
size_t index_type
Definition: vctContainerTraits.h:36
size_t size_type
Definition: vctContainerTraits.h:35
ptrdiff_t difference_type
Definition: vctContainerTraits.h:38
ptrdiff_t stride_type
Definition: vctContainerTraits.h:37
Macro used to define multiple types based on the type of elements. This will define size_type, index_type, difference_type, stride_type, value_type, reference, const_reference, pointer, const_pointer, NormType (double) and AngleType (double). Most of these types are introduced and named for STL compatibility.
- Parameters
-
type | Type of element, e.g. double, float, char. |