C++ 11包括该算法std::partition_point().然而,对于我尝试过的所有情况,它给出了相同的答案std::lower_bound().唯一的区别是方便的T& value参数.
std::partition_point()
std::lower_bound()
T& value
我错过了什么,或者这两个功能或多或少都做了同样的事情?
c++ partitioning std binary-search c++11
binary-search ×1
c++ ×1
c++11 ×1
partitioning ×1
std ×1