- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# fm::icomparator< T > Class Template Reference

A utility to sort an array in descending order, using operator<. More...

`#include <FMSort.h>`

Inheritance diagram for fm::icomparator< T >:

List of all members.

## Public Member Functions
virtual | ~icomparator ()
| Destructor.
virtual bool | compare (const T &a, const T &b)
| Compares two elements in descending order, using operator<.

## Detailed Description

### template<class T>
class fm::icomparator< T >

A utility to sort an array in descending order, using operator<.

## Member Function Documentation

template<class T>
virtual bool fm::icomparator< T >::compare | ( | const T & | a,
|  | const T & | b
| ) | `[inline, virtual]`

  | Compares two elements in descending order, using operator<. Override this function to define your custom comparator. Parameters:
  | a | The first element.
  | b | The second element.
Returns: True if a is greater than b, false otherwise. Reimplemented from fm::comparator< T >.

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

- FMath/FMSort.h