Sometimes I get tired of all this my_vector.begin(), my_vector.end()
noise. Last year at boostcon, Andrei Alexandrescu's keynote speech was titled Iterators Must Go (video)
Is there any progress on introducing ranges into C++, so I can finally say std::sort(my_vector)
?
lower_bound
return if not an iterator ?lower_bound
is faster to compute, and that is all that is needed to know where to insert if you don't care about order.