aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__algorithm/is_sorted.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/__algorithm/is_sorted.h')
-rw-r--r--libcxx/include/__algorithm/is_sorted.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__algorithm/is_sorted.h b/libcxx/include/__algorithm/is_sorted.h
index bf44f45764d5..a321c2c12dc4 100644
--- a/libcxx/include/__algorithm/is_sorted.h
+++ b/libcxx/include/__algorithm/is_sorted.h
@@ -36,7 +36,7 @@ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20
bool
is_sorted(_ForwardIterator __first, _ForwardIterator __last)
{
- return _VSTD::is_sorted(__first, __last, __less<typename iterator_traits<_ForwardIterator>::value_type>());
+ return _VSTD::is_sorted(__first, __last, __less<>());
}
_LIBCPP_END_NAMESPACE_STD