4 ms·
You really think auto and cbegin/cend make any difference here?
by wfunction 12y ago
You really think auto and cbegin/cend make any difference here?
- verroq 12y agoC++ programmers generally know the iterator invalidation rules though.
- stinos 12y agoCompilation-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.