Re:In C++, is empty() faster than comparing the size with zero?
by tialaramex on Thursday October 28, 2021 @04:42PM
(#29031671)
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.
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.