MCPcopy Create free account
hub / github.com/davisking/dlib / sort

Method sort

dlib/array/array_kernel.h:628–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626 typename mem_manager
627 >
628 void array<T,mem_manager>::
629 sort (
630 )
631 {
632 if (this->size() > 1)
633 {
634 // call the quick sort function for arrays that is in algs.h
635 dlib::qsort_array(*this,0,this->size()-1);
636 }
637 this->reset();
638 }
639
640// ----------------------------------------------------------------------------------------
641

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.95
qsort_arrayFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected