30#ifndef _STLP_INTERNAL_HEAP_H
31#define _STLP_INTERNAL_HEAP_H
37template <
class _RandomAccessIterator>
42template <
class _RandomAccessIterator,
class _Compare>
47template <
class _RandomAccessIterator,
class _Distance,
class _Tp>
49__adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
50 _Distance __len, _Tp
__val);
52template <
class _RandomAccessIterator,
class _Tp,
class _Distance>
55 _RandomAccessIterator __result, _Tp
__val, _Distance*)
61template <
class _RandomAccessIterator>
62void pop_heap(_RandomAccessIterator __first,
63 _RandomAccessIterator
__last);
65template <
class _RandomAccessIterator,
class _Distance,
66 class _Tp,
class _Compare>
68__adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
69 _Distance __len, _Tp
__val, _Compare __comp);
71template <
class _RandomAccessIterator,
class _Tp,
class _Compare,
75 _RandomAccessIterator __result, _Tp
__val, _Compare __comp,
83template <
class _RandomAccessIterator,
class _Compare>
85pop_heap(_RandomAccessIterator __first,
86 _RandomAccessIterator
__last, _Compare __comp);
88template <
class _RandomAccessIterator>
92template <
class _RandomAccessIterator,
class _Compare>
95 _RandomAccessIterator
__last, _Compare __comp);
97template <
class _RandomAccessIterator>
101 while (
__last - __first > 1)
105template <
class _RandomAccessIterator,
class _Compare>
109 _RandomAccessIterator
__last, _Compare __comp)
111 while (
__last - __first > 1)
117# if !defined (_STLP_LINK_TIME_INSTANTIATION)
_STLP_INLINE_LOOP _InputIter __last
_STLP_INLINE_LOOP _InputIter const _Tp & __val
void __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, _Distance __len, _Tp __val)
_STLP_BEGIN_NAMESPACE void push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
_STLP_INLINE_LOOP void sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
void __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _RandomAccessIterator __result, _Tp __val, _Distance *)
void pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
void make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)
#define _STLP_INLINE_LOOP
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE