File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ class prevector {
53
53
typedef T value_type;
54
54
typedef T* pointer;
55
55
typedef T& reference;
56
- typedef std::random_access_iterator_tag iterator_category;
56
+ using element_type = T;
57
+ using iterator_category = std::contiguous_iterator_tag;
57
58
iterator () = default ;
58
59
iterator (T* ptr_) : ptr(ptr_) {}
59
60
T& operator *() const { return *ptr; }
@@ -104,7 +105,8 @@ class prevector {
104
105
typedef const T value_type;
105
106
typedef const T* pointer;
106
107
typedef const T& reference;
107
- typedef std::random_access_iterator_tag iterator_category;
108
+ using element_type = const T;
109
+ using iterator_category = std::contiguous_iterator_tag;
108
110
const_iterator () = default ;
109
111
const_iterator (const T* ptr_) : ptr(ptr_) {}
110
112
const_iterator (iterator x) : ptr(&(*x)) {}
You can’t perform that action at this time.
0 commit comments