TuringSim
C++ framework to simulate abstract computing models
Static Public Member Functions | List of all members
TuringSim::Utils::Compare< T > Class Template Reference

A class to compare values with a strong total order. The generic way use operator<. More...

#include <utils/compare.h>

Static Public Member Functions

static int compare (const T &lhs, const T &rhs)
 Compare elements with a strong total order. More...
 

Detailed Description

template<typename T>
class TuringSim::Utils::Compare< T >

A class to compare values with a strong total order. The generic way use operator<.

Template Parameters
T

Definition at line 9 of file compare.h.

Member Function Documentation

◆ compare()

template<typename T >
static int TuringSim::Utils::Compare< T >::compare ( const T &  lhs,
const T &  rhs 
)
inlinestatic

Compare elements with a strong total order.

Parameters
[in]lhsthe lhs element.
[in]rhsthe rhs element.
Returns
A negative value if lhs < rhs, 0 if lhs = rhs and a positive result if lhs > rhs.

Definition at line 15 of file compare.h.

Here is the caller graph for this function:

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