38#ifndef SortableListDRGEP_H
39#define SortableListDRGEP_H
81 return values_[a] < values_[
b];
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Less function class used by the sort function.
bool operator()(const label a, const label b)
less(const UList< Type > &values)
A list that is sorted upon construction or when explicitly requested with the sort() method.
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
void stableSort()
Sort the list (if changed after construction time)
void partialSort(int M)
Partial sort the list (if changed after construction time)
void sort()
Sort the list (if changed after construction time)
void operator=(const SortableListDRGEP< Type > &)
void setSize(const label)
Size the list. If grow can cause undefined indices (until next sort)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const noexcept
The number of elements in the UList.