3 ms·
Marginally more readable, but is it performing better?
by toxik 5y ago
Marginally more readable, but is it performing better?
- twoodfin 5y agoIndeed, outside of corner cases where iterators are expensive to copy or compare, I’d be surprised if there were any measurable advantage beyond clarity.
- secondcoming 5y agoNo, the codegen is the same https://godbolt.org/z/eebE9eYP6 https://godbolt.org/z/eebE9eYP6