JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce_ElementComparator.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

class  juce::DefaultElementComparator< ElementType >
 A simple ElementComparator class that can be used to sort an array of objects that support the '<' operator. More...
 

Namespaces

 juce
 

Functions

template<class ElementType , class ElementComparator >
static int juce::findInsertIndexInSortedArray (ElementComparator &comparator, ElementType *const array, const ElementType newElement, int firstElement, int lastElement)
 Searches a sorted array of elements, looking for the index at which a specified value should be inserted for it to be in the correct order. More...
 
template<class ElementType , class ElementComparator >
static void juce::sortArray (ElementComparator &comparator, ElementType *const array, int firstElement, int lastElement, const bool retainOrderOfEquivalentItems)
 Sorts a range of elements in an array. More...