Lines Matching refs:_Distance
39 template <class _RandomAccessIterator, class _Distance, class _Tp>
43 _Distance __holeIndex, _Distance __topIndex, _Tp __val)
45 _Distance __parent = (__holeIndex - 1) / 2;
54 template <class _RandomAccessIterator, class _Distance, class _Tp>
57 _RandomAccessIterator __last, _Distance*, _Tp*)
59 __push_heap(__first, _Distance((__last - __first) - 1), _Distance(0),
72 template <class _RandomAccessIterator, class _Distance, class _Tp,
76 __push_heap(_RandomAccessIterator __first, _Distance __holeIndex,
77 _Distance __topIndex, _Tp __val, _Compare __comp)
79 _Distance __parent = (__holeIndex - 1) / 2;
90 class _Distance, class _Tp>
94 _Distance*, _Tp*)
96 __push_heap(__first, _Distance((__last - __first) - 1), _Distance(0),
109 template <class _RandomAccessIterator, class _Distance, class _Tp>
111 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
112 _Distance __len, _Tp __val) {
113 _Distance __topIndex = __holeIndex;
114 _Distance __secondChild = 2 * __holeIndex + 2;
143 template <class _RandomAccessIterator, class _Distance,
146 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
147 _Distance __len, _Tp __val, _Compare __comp)
149 _Distance __topIndex = __holeIndex;
150 _Distance __secondChild = 2 * __holeIndex + 2;
187 template <class _RandomAccessIterator, class _Tp, class _Distance>
191 _RandomAccessIterator __last, _Tp*, _Distance*)
194 _Distance __len = __last - __first;
195 _Distance __parent = (__len - 2)/2;
213 class _Tp, class _Distance>
217 _Compare __comp, _Tp*, _Distance*)
220 _Distance __len = __last - __first;
221 _Distance __parent = (__len - 2)/2;