function object
std::ranges::push_heap
- Header
<algorithm>- Draft
- [push.heap]
- Scope
std::ranges- cppreference
- std::ranges::push_heap
Synopsis
inline constexpr /* implementation-defined */ push_heap = {};Call signatures
push_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> push_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 push_heap(I first, S last, Comp comp = {}, Proj proj = {});