Skip to content

Commit a287dbb

Browse files
authored
Update algo.h
1 parent 3c299d5 commit a287dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MyTinySTL/algo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ ForwardIter adjacent_find(ForwardIter first, ForwardIter last, Compared comp)
517517

518518
/*****************************************************************************************/
519519
// lower_bound
520-
// 在[first, last)中查找第一个不小于 value 的元素的位置
520+
// 在[first, last)中查找第一个大于等于 value 的元素的位置
521521
// 返回一个迭代器,指向在范围内的有序序列中可以插入指定值而不破坏容器顺序的第一个位置
522522
/*****************************************************************************************/
523523
// lbound_dispatch 的 forward_iterator_tag 版本
@@ -645,7 +645,7 @@ lower_bound(ForwardIter first, ForwardIter last, const T& value, Compared comp)
645645

646646
/*****************************************************************************************/
647647
// upper_bound
648-
// 在[first, last)中查找最后一个不小于 value 的元素的位置
648+
// 在[first, last)中查找第一个大于value 的元素的位置
649649
// 返回一个迭代器,它指向在范围内的有序序列中可以插入指定值而不破坏容器顺序的最后一个位置
650650
/*****************************************************************************************/
651651
// ubound_dispatch 的 forward_iterator_tag 版本

0 commit comments

Comments
 (0)