Range-v3
Range algorithms, views, and actions for the Standard Library
heap_algorithm.hpp File Reference

Functions

template<typename I , typename S , typename C = less, typename P = identity>
requires random_access_iterator< I > &&sentinel_for< S, I > &&indirect_strict_weak_order< C, projected< I, P > > bool ranges::is_heap (I first, S last, C pred=C{}, P proj=P{})
 function template is_heap
 
template<typename Rng , typename C = less, typename P = identity>
requires random_access_range< Rng > &&indirect_strict_weak_order< C, projected< iterator_t< Rng >, P > > bool ranges::is_heap (Rng &&rng, C pred=C{}, P proj=P{})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename I , typename S , typename C = less, typename P = identity>
requires random_access_iterator< I > &&sentinel_for< S, I > &&indirect_strict_weak_order< C, projected< I, P > > I ranges::is_heap_until (I first, S last, C pred=C{}, P proj=P{})
 function template is_heap_until
 
template<typename Rng , typename C = less, typename P = identity>
requires random_access_range< Rng > &&indirect_strict_weak_order< C, projected< iterator_t< Rng >, P > > borrowed_iterator_t< Rng > ranges::is_heap_until (Rng &&rng, C pred=C{}, P proj=P{})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename I , typename S , typename C = less, typename P = identity>
requires random_access_iterator< I > &&sentinel_for< S, I > &&sortable< I, C, P > I ranges::make_heap (I first, S last, C pred=C{}, P proj=P{})
 function template make_heap
 
template<typename Rng , typename C = less, typename P = identity>
requires random_access_range< Rng > &&sortable< iterator_t< Rng >, C, P > borrowed_iterator_t< Rng > ranges::make_heap (Rng &&rng, C pred=C{}, P proj=P{})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename I , typename S , typename C = less, typename P = identity>
requires random_access_iterator< I > &&sentinel_for< S, I > &&sortable< I, C, P > I ranges::pop_heap (I first, S last, C pred=C{}, P proj=P{})
 function template pop_heap
 
template<typename Rng , typename C = less, typename P = identity>
requires random_access_range< Rng > &&sortable< iterator_t< Rng >, C, P > borrowed_iterator_t< Rng > ranges::pop_heap (Rng &&rng, C pred=C{}, P proj=P{})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename I , typename S , typename C = less, typename P = identity>
requires random_access_iterator< I > &&sentinel_for< S, I > &&sortable< I, C, P > I ranges::push_heap (I first, S last, C pred=C{}, P proj=P{})
 function template push_heap
 
template<typename Rng , typename C = less, typename P = identity>
requires random_access_range< Rng > &&sortable< iterator_t< Rng >, C, P > borrowed_iterator_t< Rng > ranges::push_heap (Rng &&rng, C pred=C{}, P proj=P{})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename I , typename S , typename C = less, typename P = identity>
requires random_access_iterator< I > &&sentinel_for< S, I > &&sortable< I, C, P > I ranges::sort_heap (I first, S last, C pred=C{}, P proj=P{})
 
template<typename Rng , typename C = less, typename P = identity>
requires random_access_range< Rng & > &&sortable< iterator_t< Rng >, C, P > borrowed_iterator_t< Rng > ranges::sort_heap (Rng &&rng, C pred=C{}, P proj=P{})