Comment by kanbankaren
18 hours ago
No, for fundamental datatypes pre/post-increment doesn't matter, but for classes that overload those operators, the postfix form creates a temporary object hence people write
for(auto it = begin(v); it != end(v); ++it)
No comments yet
Contribute on Hacker News ↗