libycxx

function object

std::ranges::push_heap

Scope
std::ranges

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 = {});
    (1)
  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 = {});
    (2)