Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For a proper/sane forward iterator, front[index] is the same thing as *(front + index) and front + index achieves the same as std::advance(front, index) (just not in place).

Or are you pointing out how first[length] and first += length + rem would technically result in advancing a forward iterator through to first + length twice? (Trivially fixed with a middle = first + length temporary variable btw).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: