function object
std::ranges::sort_heap
- Header
<algorithm>- Draft
- [sort.heap]
- Scope
std::ranges- cppreference
- std::ranges::sort_heap
Synopsis
inline constexpr /* implementation-defined */ sort_heap = {};Call signatures
sort_heap is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template< std::ranges::random_access_range R, class Comp = std::ranges::less, class Proj = std::identity> requires std::sortable<iterator_t<R>, Comp, Proj> constexpr borrowed_iterator_t<R> sort_heap( R&& r, Comp comp = {}, Proj proj = {}); - (2)
template< std::random_access_iterator I, std::sentinel_for<I> S, class Comp = std::ranges::less, class Proj = std::identity> requires std::sortable<I, Comp, Proj> constexpr I sort_heap(I first, S last, Comp comp = {}, Proj proj = {});