Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wfunction
· 11y ago · 0 comments
You really think auto and cbegin/cend make any difference here?
Comments
[–]
stinos
11y ago
Compilation-wise: of course not. As an illustration of what is wrong with the code: yes. auto means you don't have to spell out the complete iterator definition. cbegin\cend is just a matter of const-correctness.
[–]
verroq
11y ago
C++ programmers generally know the iterator invalidation rules though.