Definition at line 225 of file spair.cpp.
226{
227
228 if (
nelems == 0)
return nullptr;
229 int i, first;
232
233 s_pair *smallest =
heap[first];
234
236 {
237 if (
heap[i] ==
nullptr)
continue;
239 if (cmp > 0)
240 {
241 first = i;
242 smallest =
heap[first];
243 }
244 }
245
246
248 smallest->
next =
nullptr;
250
255 {
257 break;
258 }
259
260 return smallest;
261}
int compare(s_pair *f, s_pair *g) const
References compare(), heap, n_in_heap, nelems, s_pair::next, and top_of_heap.