Почему std::lower_bound превосходит low_bound в диапазонах тестов C++?
Мой код выглядит следующим образом:
Код: Выделить всё
#include
#include
#include
std::set my_set;
static void RangeLowerBound(benchmark::State& state) {
for (auto i = 0; i
Источник: [url]https://stackoverflow.com/questions/78133325/performance-discrepancy-between-stdlower-bound-and-stdrangeslower-bound[/url]
Мобильная версия