diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2021-11-20 17:39:12 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-06-04 11:58:59 +0000 | 
| commit | 1f6fd64fe9c996b4795ee4a6c66b8f9216747560 (patch) | |
| tree | f0dce1f53c7da9228c69dde85abda66541a6206e /contrib/llvm-project/libcxx/include/__algorithm/is_heap.h | |
| parent | 4b6eb0e63c698094db5506763df44cc83c19f643 (diff) | |
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__algorithm/is_heap.h')
| -rw-r--r-- | contrib/llvm-project/libcxx/include/__algorithm/is_heap.h | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h b/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h index 7fd5d6ff9a00..22c27a66d129 100644 --- a/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h +++ b/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h @@ -11,6 +11,7 @@  #include <__config>  #include <__algorithm/comp.h> +#include <__algorithm/comp_ref_type.h>  #include <__algorithm/is_heap_until.h>  #include <__iterator/iterator_traits.h> @@ -26,7 +27,8 @@ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17  bool  is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp)  { -    return _VSTD::is_heap_until(__first, __last, __comp) == __last; +    typedef typename __comp_ref_type<_Compare>::type _Comp_ref; +    return _VSTD::__is_heap_until<_Comp_ref>(__first, __last, __comp) == __last;  }  template<class _RandomAccessIterator>  | 
