Несоответствие производительности между std::lower_bound и std::ranges::lower_boundC++

Программы на C++. Форум разработчиков
Anonymous
Несоответствие производительности между std::lower_bound и std::ranges::lower_bound

Сообщение Anonymous »


Почему 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]

Вернуться в «C++»