Details
Details
- Reviewers
chandlerc
Diff Detail
Diff Detail
Event Timeline
llvm/include/llvm/ADT/iterator.h | ||
---|---|---|
45–49 | For both forward and bidirectional, you can instead implement (one overload of) operator++ and operator-- respectively. Generally, that's a better option for such iterators. For random-access, you can skip implementing those because we can generate them from the += and -= (which we have to have you implement in order for random access to be fast). |
For both forward and bidirectional, you can instead implement (one overload of) operator++ and operator-- respectively. Generally, that's a better option for such iterators.
For random-access, you can skip implementing those because we can generate them from the += and -= (which we have to have you implement in order for random access to be fast).