std:lower_bound and std::set::lower_bound

C++ std::lower_bound and std::set::lower_bound

在set中使用std::lower_bound发现非常耗时,而使用std::set::lower_bound发现速度明显提升。
该文章解释说明了这两个的区别,在set中使用std::set::lower_bound才是最好的选择。

posted @ 2021-05-09 16:13  jadelemon  阅读(57)  评论(0编辑  收藏  举报