Loading...
Searching...
No Matches
juce::DefaultElementComparator< ElementType > Class Template Reference

Detailed Description

template<class ElementType>
class juce::DefaultElementComparator< ElementType >

A simple ElementComparator class that can be used to sort an array of objects that support the '<' operator.

This will work for primitive types and objects that implement operator<().

Example:

Array<int> myArray;
myArray.sort (sorter);
Holds a resizable array of primitive or copy-by-value objects.
Definition juce_Array.h:68
void sort()
Sorts the array using a default comparison operation.
Definition juce_Array.h:1063
A simple ElementComparator class that can be used to sort an array of objects that support the '<' op...
Definition juce_ElementComparator.h:195
See also
ElementComparator

Static Public Member Functions

static int compareElements (ParameterType first, ParameterType second)

Member Functions

◆ compareElements()

template<class ElementType>
int juce::DefaultElementComparator< ElementType >::compareElements ( ParameterType first,
ParameterType second )
static
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram