3 ms·
Wait, isn't the point of the STL algorithms that they use iterators? For sure the iterator over a vector may be very cheap to use, but it is still an iterator,
by tialaramex 5y ago
Wait, isn't the point of the STL algorithms that they use iterators?
For sure the iterator over a vector may be very cheap to use, but it is still an iterator, even if you tacitly know it's just pointer arithmetic under the hood.