Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Comparator< T > Class Template Reference

#include <elm/compare.h>

+ Inheritance diagram for Comparator< T >:

Public Types

typedef T t
 

Public Member Functions

int doCompare (const T &v1, const T &v2) const
 

Static Public Member Functions

static int compare (const T &v1, const T &v2)
 

Detailed Description

template<class T>
class elm::Comparator< T >

Comparator concept (elm/compare.h) allows comparing two data.

Several implementation of Comparator concept exists:

Parameters
TType of compared objects.

Member Typedef Documentation

◆ t

typedef T t

Member Function Documentation

◆ compare()

int compare ( const T &  v1,
const T &  v2 
)
inlinestatic

◆ doCompare()

int doCompare ( const T &  v1,
const T &  v2 
) const
inline

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