目录
binary_search(beg, end, value)
binary_search(beg, end, value, op)
includes(beg, end, searchBeg, searchEnd)
includes(beg, end, searchBeg, searchEnd, op)
lower_bound(beg, end, value, op)
upper_bound(beg, end, value, op)
equal_range(beg, end, value, op)
merge(src1Beg, src1End, src2Beg, src2End, destBeg)
merge(src1Beg, src1End, src2Beg, src2End, destBeg, op)
set_union(src1Beg, src1End, src2Beg, src2End, destBeg)
set_union(src1Beg, src1End, src2Beg, src2End, destBeg, op)
set_intersection(src1Beg, src1End, src2Beg, src2End, destBeg)
set_intersection(src1Beg, src1End, src2Beg, src2End, destBeg, op)
set_difference(src1Beg, src1End, src2Beg, src2End, destBeg)
set_difference(src1Beg, src1End, src2Beg, src2End, destBeg, op)
set_symmetric_difference(src1Beg, src1End, src2Beg, src2End, destBeg)
set_symmetric_difference(src1Beg, src1End, src2Beg, src2End, destBeg, op)
inplace_merge(beg1, end1beg2, end2)
inplace_merge(beg1, end1beg2, end2, op)
查找元素
检查某个元素是否存在:
binary_search(beg, end, value)
binary_search(beg, end, value, op)
检查数个元素是否存在:
includes(beg, end, searchBeg, searchEnd)
includes(beg, end, searchBeg, searchEnd, op)
查找第一个或最后一个可能位置:
lower_bound(beg, end, value)
lower_bound(beg, end, value, op)
upper_bound(beg, end, value)
upper_bound(beg, end, value, op)
查找第一个和最后一个可能位置:
equal_range(beg, end, value)
equal_range(beg, end, value, op)
合并元素
两个已排序区间的所有元素合并在一起:
merge(src1Beg, src1End, src2Beg, src2End, destBeg)
merge(src1Beg, src1End, src2Beg, src2End, destBeg, op)