|
@@ -4088,14 +4088,8 @@ inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
|
|
_ForwardIterator
|
|
|
lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value_, _Compare __comp)
|
|
|
{
|
|
|
-#ifdef _LIBCPP_DEBUG
|
|
|
- typedef typename add_lvalue_reference<__debug_less<_Compare> >::type _Comp_ref;
|
|
|
- __debug_less<_Compare> __c(__comp);
|
|
|
- return __lower_bound<_Comp_ref>(__first, __last, __value_, __c);
|
|
|
-#else // _LIBCPP_DEBUG
|
|
|
typedef typename add_lvalue_reference<_Compare>::type _Comp_ref;
|
|
|
return __lower_bound<_Comp_ref>(__first, __last, __value_, __comp);
|
|
|
-#endif // _LIBCPP_DEBUG
|
|
|
}
|
|
|
|
|
|
template <class _ForwardIterator, class _Tp>
|
|
@@ -4136,14 +4130,8 @@ inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
|
|
_ForwardIterator
|
|
|
upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value_, _Compare __comp)
|
|
|
{
|
|
|
-#ifdef _LIBCPP_DEBUG
|
|
|
- typedef typename add_lvalue_reference<__debug_less<_Compare> >::type _Comp_ref;
|
|
|
- __debug_less<_Compare> __c(__comp);
|
|
|
- return __upper_bound<_Comp_ref>(__first, __last, __value_, __c);
|
|
|
-#else // _LIBCPP_DEBUG
|
|
|
typedef typename add_lvalue_reference<_Compare>::type _Comp_ref;
|
|
|
return __upper_bound<_Comp_ref>(__first, __last, __value_, __comp);
|
|
|
-#endif // _LIBCPP_DEBUG
|
|
|
}
|
|
|
|
|
|
template <class _ForwardIterator, class _Tp>
|