You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template<typename Policy, typename InputIt1, typename InputIt2, typename OutputIt,
typename Comparator =
std::less<typename std::iterator_traits<InputIt>::value_type>>
OutputIt
lower_bound(Policy&& policy, InputIt1 start, InputIt1 end,
InputIt2 value_first, InputIt2 value_last, OutputIterator result,
Comparator comp =
std::less<typename std::iterator_traits<InputIt1>::value_type>());
...
If no comparator is provided, :code:`operator<` is used to determine when the search value is less than an element in the range being searched.
operator< is specified as a default comparator despite having std::less as a default template parameter.
The text was updated successfully, but these errors were encountered:
Well, std::less is defined in the standard to use operator<, and no customization mechanism is described. So the wording is not wrong, though perhaps confusing.
Let's consider
lower_bound
as an example:operator<
is specified as a default comparator despite havingstd::less
as a default template parameter.The text was updated successfully, but these errors were encountered: