We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a4067 commit 734603cCopy full SHA for 734603c
inst/include/cpp11/r_vector.hpp
@@ -102,6 +102,12 @@ class r_vector {
102
const_iterator find(const r_string& name) const;
103
104
class const_iterator {
105
+ // Iterator references:
106
+ // https://cplusplus.com/reference/iterator/
107
+ // https://stackoverflow.com/questions/8054273/how-to-implement-an-stl-style-iterator-and-avoid-common-pitfalls
108
+ // It seems like our iterator doesn't fully implement everything for
109
+ // `random_access_iterator_tag` (like an `[]` operator, for example). If we discover
110
+ // issues with it, we probably need to add more methods.
111
private:
112
const r_vector* data_;
113
R_xlen_t pos_;
0 commit comments