You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove redundant modulo operations and fix end() iterator
- Removed % N from operator* and operator-> since index_ is always in [0, N-1] for valid iterators
- Changed end() and cend() to use N as sentinel value, consistent with operator++ implementation
- With the current operator++ that keeps index_ bounded and sets it to N at end, the modulo in dereference operators is redundant
Co-authored-by: bugparty <1510776+bugparty@users.noreply.github.com>
0 commit comments