Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
hellofunk
· 6y ago · 0 comments
Why not just pass the reference instead of an iterator or index? That’s what I do the best majority of the time. It’s rare that I actually need a specific iterator or pointer.
Just change your loop to auto& x.
Comments
No comments yet.
Better HN