@ -51,25 +51,25 @@ template <class T, size_t kSize = 8>
class autovector {
class autovector {
public :
public :
// General STL-style container member types.
// General STL-style container member types.
typedef T value_type ;
using value_type = T ;
typedef typename std : : vector < T > : : difference_type difference_type ;
using difference_type = typename std : : vector < T > : : difference_type ;
typedef typename std : : vector < T > : : size_type size_type ;
using size_type = typename std : : vector < T > : : size_type ;
typedef value_type & reference ;
using reference = value_type & ;
typedef const value_type & const_reference ;
using const_reference = const value_type & ;
typedef value_type * pointer ;
using pointer = value_type * ;
typedef const value_type * const_pointer ;
using const_pointer = const value_type * ;
// This class is the base for regular/const iterator
// This class is the base for regular/const iterator
template < class TAutoVector , class TValueType >
template < class TAutoVector , class TValueType >
class iterator_impl {
class iterator_impl {
public :
public :
// -- iterator traits
// -- iterator traits
typedef iterator_impl < TAutoVector , TValueType > self_type ;
using self_type = iterator_impl < TAutoVector , TValueType > ;
typedef TValueType value_t ype;
using value_type = TValueT ype;
typedef TValueType & reference ;
using reference = TValueType & ;
typedef TValueType * pointer ;
using pointer = TValueType * ;
typedef typename TAutoVector : : difference_type difference_type ;
using difference_type = typename TAutoVector : : difference_type ;
typedef std : : random_access_iterator_tag iterator_category ;
using iterator_category = std : : random_access_iterator_tag ;
iterator_impl ( TAutoVector * vect , size_t index )
iterator_impl ( TAutoVector * vect , size_t index )
: vect_ ( vect ) , index_ ( index ) { } ;
: vect_ ( vect ) , index_ ( index ) { } ;
@ -175,10 +175,10 @@ class autovector {
size_t index_ = 0 ;
size_t index_ = 0 ;
} ;
} ;
typedef iterator_impl < autovector , value_type > iterator ;
using iterator = iterator_impl < autovector , value_type > ;
typedef iterator_impl < const autovector , const value_type > const_iterator ;
using const_iterator = iterator_impl < const autovector , const value_type > ;
typedef std : : reverse_iterator < iterator > reverse_iterator ;
using reverse_iterator = std : : reverse_iterator < iterator > ;
typedef std : : reverse_iterator < const_iterator > const_reverse_iterator ;
using const_reverse_iterator = std : : reverse_iterator < const_iterator > ;
autovector ( ) : values_ ( reinterpret_cast < pointer > ( buf_ ) ) { }
autovector ( ) : values_ ( reinterpret_cast < pointer > ( buf_ ) ) { }