JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Static Public Member Functions
DefaultElementComparator< ElementType > Class Template Reference

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

List of all members.

Static Public Member Functions

static int compareElements (ParameterType first, ParameterType second)

Detailed Description

template<class ElementType>
class 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;
    DefaultElementComparator<int> sorter;
    myArray.sort (sorter);
See also:
ElementComparator

Member Function Documentation

template<class ElementType>
static int DefaultElementComparator< ElementType >::compareElements ( ParameterType  first,
ParameterType  second 
) [static]

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