Skip to content

Commit 3b55ef9

Browse files
committed
Avoid copying the comparator
1 parent 0183279 commit 3b55ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__algorithm/min_element.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
2929

3030
template <class _Comp, class _Iter, class _Sent, class _Proj>
3131
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Iter
32-
__min_element(_Iter __first, _Sent __last, _Comp __comp, _Proj& __proj) {
32+
__min_element(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) {
3333
if (__first == __last)
3434
return __first;
3535

0 commit comments

Comments
 (0)