@@ -88,6 +88,15 @@ class Iter
88
88
return ptr->Data () != other.ptr ->Data () && index != other.index ;
89
89
}
90
90
91
+ /* *
92
+ * A de-referencing operator. Accesses a pointer to the current element
93
+ * @return a pointer to the element pointed to by the iterator
94
+ */
95
+ inline constexpr T* operator ->() const
96
+ {
97
+ return ptr->Data () + index;
98
+ }
99
+
91
100
/* *
92
101
* Returns the index currently held by the iterator
93
102
* @return returns the current index the iterator is on
@@ -183,6 +192,15 @@ class ConstIter
183
192
return ptr->Data () != other.ptr ->Data () && index != other.index ;
184
193
}
185
194
195
+ /* *
196
+ * A de-referencing operator. Accesses a pointer to the current element
197
+ * @return a pointer to the element pointed to by the iterator
198
+ */
199
+ inline constexpr const T* operator ->() const
200
+ {
201
+ return ptr->Data () + index;
202
+ }
203
+
186
204
/* *
187
205
* Returns the index currently held by the iterator
188
206
* @return returns the current index the iterator is on
@@ -288,6 +306,15 @@ class MIter
288
306
return ptr->Data () != other.ptr ->Data () && index != other.index ;
289
307
}
290
308
309
+ /* *
310
+ * A de-referencing operator. Accesses a pointer to the current element
311
+ * @return a pointer to the element pointed to by the iterator
312
+ */
313
+ inline constexpr T* operator ->() const
314
+ {
315
+ return ptr->Data () + index;
316
+ }
317
+
291
318
/* *
292
319
* Returns the index currently held by the iterator
293
320
* @return returns the current index the iterator is on
@@ -395,6 +422,15 @@ class CMIter
395
422
return ptr->Data () != other.ptr ->Data () && index != other.index ;
396
423
}
397
424
425
+ /* *
426
+ * A de-referencing operator. Accesses a pointer to the current element
427
+ * @return a pointer to the element pointed to by the iterator
428
+ */
429
+ inline constexpr const T* operator ->() const
430
+ {
431
+ return ptr->Data () + index;
432
+ }
433
+
398
434
/* *
399
435
* Returns the index currently held by the iterator
400
436
* @return returns the current index the iterator is on
0 commit comments