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

#include <ElementComparator.h>

Static Public Member Functions

static int compareElements (ParameterType first, ParameterType second)

Private Member Functions

typedef PARAMETER_TYPE (ElementType) ParameterType

Detailed Description

template<class ElementType>
class water::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);
void sort()
Definition Array.h:1014
Definition ElementComparator.h:179
See also
ElementComparator

Member Function Documentation

◆ compareElements()

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

◆ PARAMETER_TYPE()

template<class ElementType>
typedef water::DefaultElementComparator< ElementType >::PARAMETER_TYPE ( ElementType )
private

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