• Both forms return the range of elements that is equal to value. The range comprises the first and
the last position an element with value value could get inserted without breaking the sorting of
the range [beg,end).
• This is equivalent to:
make_pair(lower_bound(...),upper_bound(...))
• op is an optional binary predicate to be used as the sorting criterion:
op(elem1,elem2)
• The caller has to ensure that the ranges are sorted according to the sorting criterion on entry.
• Associative and unordered containers provide an equivalent member function that has better
performance (see Section 8.3.3, page 406).
• Complexity: logarithmic for random-access iterators, linear otherwise (at most, 2*log(num-
Elems) + 1 comparisons; but for other than random-access iterators, the number of operations to
step through the elements is linear, making the total complexity linear).
• Both forms return the range of elements that is equal to value. The range comprises the first and
the last position an element with value value could get inserted without breaking the sorting of
the range [beg,end).
• This is equivalent to:
make_pair(lower_bound(...),upper_bound(...))
• op is an optional binary predicate to be used as the sorting criterion:
op(elem1,elem2)
• The caller has to ensure that the ranges are sorted according to the sorting criterion on entry.
• Associative and unordered containers provide an equivalent member function that has better
performance (see Section 8.3.3, page 406).
• Complexity: logarithmic for random-access iterators, linear otherwise (at most, 2*log(num-
Elems) + 1 comparisons; but for other than random-access iterators, the number of operations to
step through the elements is linear, making the total complexity linear).
การแปล กรุณารอสักครู่..