Sit*_*esh 0 c++ algorithm unordered-map
对于std :: tr1 :: unordered_map,有没有类似于std :: map :: lower_bound的等效std :: algorithm?
不,没有,因为std::unordered_map不是一个有序的容器.
std::lower_bound 存在,但它只适用于有序容器:
要求:该元件
e的[first,last)应相对于所述表达被划分e < value或comp(e, value).
C++ 11,[lower.bound](§25.4.3.1)