JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
juce::DefaultElementComparator< ElementType > Class Template Reference

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

#include "juce_ElementComparator.h"

Static Public Member Functions

static int compareElements (ParameterType first, ParameterType second)
 

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:

myArray.sort (sorter);
Holds a resizable array of primitive or copy-by-value objects.
Definition juce_Array.h:56
A simple ElementComparator class that can be used to sort an array of objects that support the '<' op...
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Definition juce_Memory.h:88
See also
ElementComparator

@tags{Core}

Definition at line 184 of file juce_ElementComparator.h.

Member Function Documentation

◆ compareElements()

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

Definition at line 190 of file juce_ElementComparator.h.


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