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

#include <juce_ElementComparator.h>

Static Public Member Functions

static int compareElements (ParameterType first, ParameterType second)

Private Types

using ParameterType = typename TypeHelpers::ParameterType<ElementType>::type

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);
Definition juce_Array.h:56
void sort()
Definition juce_Array.h:1076
Definition juce_ElementComparator.h:188
See also
ElementComparator

@tags{Core}

Member Typedef Documentation

◆ ParameterType

template<class ElementType>
using juce::DefaultElementComparator< ElementType >::ParameterType = typename TypeHelpers::ParameterType<ElementType>::type
private

Member Function Documentation

◆ compareElements()

template<class ElementType>
int juce::DefaultElementComparator< ElementType >::compareElements ( ParameterType first,
ParameterType second )
inlinestatic

The documentation for this class was generated from the following file: