stl binary search

时间:2021-06-10 19:55:07

stl binary search

*/-->

pre {
background-color: #2f4f4f;line-height: 1.6;
FONT: 10.5pt Consola,"Bitstream Vera Sans", Courier New, helvetica;
color:wheat;
}
.h3 {
margin-left: 10pt;
}

*///-->

stl binary search

upper_bound

http://msdn.microsoft.com/en-us/library/7a0e117a(v=vs.71).aspx

Finds the position of the first element in an ordered range that has a value
that is greater than a specified value, where the ordering criterion may be
specified by a binary predicate.

lower_bound

http://msdn.microsoft.com/en-us/library/34hhk3zb(v=vs.71).aspx

Finds the position of the first element in an ordered range that has a value
greater than or equivalent to a specified value, where the ordering criterion
may be specified by a binary predicate.


Post by: Jalen Wang (转载请注明出处)