MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / Sort

Method Sort

kratos/containers/pointer_vector_set.h:873–877  ·  view source on GitHub ↗

* @brief Sort the elements in the set. * @details This function sorts the elements in the set using the CompareKey comparison function. After sorting, * it updates mSortedPartSize to match the size of the data container. */

Source from the content-addressed store, hash-verified

871 * it updates mSortedPartSize to match the size of the data container.
872 */
873 void Sort()
874 {
875 std::sort(mData.begin(), mData.end(), CompareKey());
876 mSortedPartSize = mData.size();
877 }
878
879 /**
880 * @brief Remove duplicate elements from the set.

Callers

nothing calls this directly

Calls 5

CompareKeyClass · 0.70
sortFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected