第 1 步:set 里的数天生从小到大
第 2 步:20 比 55 小:跳过
第 3 步:30 比 55 小:跳过
第 4 步:50 比 55 小:跳过
第 5 步:lower_bound(55):停在 60
对 std::set 调 s.lower_bound(x),返回的是【0】。
std::set
s.lower_bound(x)
全部评论