|
@ -8,11 +8,11 @@ |
|
|
namespace gp{ |
|
|
namespace gp{ |
|
|
template<typename T> |
|
|
template<typename T> |
|
|
class vector{ |
|
|
class vector{ |
|
|
public: |
|
|
|
|
|
T* ary; |
|
|
T* ary; |
|
|
size_t sz; |
|
|
size_t sz; |
|
|
size_t cap; |
|
|
size_t cap; |
|
|
gp::reference_wrapper<allocator> alloc; |
|
|
gp::reference_wrapper<allocator> alloc; |
|
|
|
|
|
public: |
|
|
using associated_iterator = pointer_iterator<T, 1>; |
|
|
using associated_iterator = pointer_iterator<T, 1>; |
|
|
using associated_const_iterator = const_pointer_iterator<T, 1>; |
|
|
using associated_const_iterator = const_pointer_iterator<T, 1>; |
|
|
using associated_riterator = pointer_iterator<T, -1>; |
|
|
using associated_riterator = pointer_iterator<T, -1>; |
|
|