Lines Matching refs:_Distance
71 template<typename _RandomAccessIterator, typename _Distance>
72 _Distance
73 __is_heap_until(_RandomAccessIterator __first, _Distance __n)
75 _Distance __parent = 0;
76 for (_Distance __child = 1; __child < __n; ++__child)
86 template<typename _RandomAccessIterator, typename _Distance,
88 _Distance
89 __is_heap_until(_RandomAccessIterator __first, _Distance __n,
92 _Distance __parent = 0;
93 for (_Distance __child = 1; __child < __n; ++__child)
105 template<typename _RandomAccessIterator, typename _Distance>
107 __is_heap(_RandomAccessIterator __first, _Distance __n)
111 typename _Distance>
113 __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n)
130 template<typename _RandomAccessIterator, typename _Distance, typename _Tp>
133 _Distance __holeIndex, _Distance __topIndex, _Tp __value)
135 _Distance __parent = (__holeIndex - 1) / 2;
175 template<typename _RandomAccessIterator, typename _Distance, typename _Tp,
178 __push_heap(_RandomAccessIterator __first, _Distance __holeIndex,
179 _Distance __topIndex, _Tp __value, _Compare __comp)
181 _Distance __parent = (__holeIndex - 1) / 2;
224 template<typename _RandomAccessIterator, typename _Distance, typename _Tp>
226 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
227 _Distance __len, _Tp __value)
229 const _Distance __topIndex = __holeIndex;
230 _Distance __secondChild = __holeIndex;
294 template<typename _RandomAccessIterator, typename _Distance,
297 __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,
298 _Distance __len, _Tp __value, _Compare __comp)
300 const _Distance __topIndex = __holeIndex;
301 _Distance __secondChild = __holeIndex;