Defines types for arrays. More...
#include <ArrayTypes.h>
Public Types | |
typedef T | value_type |
The element type, T , of the array. | |
typedef Loki::TypeTraits < value_type >::ParameterType | parameter_type |
The parameter type. | |
typedef Loki::TypeTraits < value_type > ::UnqualifiedType | unqualified_value_type |
The unqualified value type. | |
typedef value_type * | pointer |
A pointer to an array element. | |
typedef const value_type * | const_pointer |
A pointer to a constant array element. | |
typedef value_type * | iterator |
An iterator in the array. | |
typedef const value_type * | const_iterator |
A iterator on constant elements in the array. | |
typedef value_type & | reference |
A reference to an array element. | |
typedef const value_type & | const_reference |
A reference to a constant array element. | |
typedef int | size_type |
The size type is a signed integer. | |
typedef std::ptrdiff_t | difference_type |
Pointer difference type. |
Defines types for arrays.
typedef Loki::TypeTraits<value_type>::ParameterType ArrayTypes< T >::parameter_type |
The parameter type.
This is used for passing the value type as an argument.
typedef int ArrayTypes< T >::size_type |
The size type is a signed integer.
Having std::size_t
(which is an unsigned integer) as the size type causes minor problems. Consult "Large Scale C++ Software Design" by John Lakos for a discussion of using unsigned integers in a class interface.
typedef Loki::TypeTraits<value_type>::UnqualifiedType ArrayTypes< T >::unqualified_value_type |
The unqualified value type.
The value type with top level const
and volatile
qualifiers removed.