swift
Loading...
Searching...
No Matches
comparefunctions.h File Reference

Go to the source code of this file.

Namespaces

namespace  swift::misc
 Free functions in swift::misc.

Functions

template<typename T>
requires (std::is_arithmetic_v<T>)
int swift::misc::Compare::compare (T a, T b)
 Compare arithmetic values.
template<typename T>
requires (std::is_enum_v<T>)
int swift::misc::Compare::compare (T a, T b)
 Compare enumerators.
template<typename T>
int swift::misc::Compare::compare (QFlags< T > a, QFlags< T > b)
 Compare QFlags.
int swift::misc::Compare::compare (const QDateTime &a, const QDateTime &b)
 Compare dates.

Function Documentation

◆ compare() [1/4]

int swift::misc::Compare::compare ( const QDateTime & a,
const QDateTime & b )
inline

Compare dates.

Definition at line 48 of file comparefunctions.h.

◆ compare() [2/4]

template<typename T>
int swift::misc::Compare::compare ( QFlags< T > a,
QFlags< T > b )

Compare QFlags.

Definition at line 41 of file comparefunctions.h.

◆ compare() [3/4]

template<typename T>
requires (std::is_enum_v<T>)
int swift::misc::Compare::compare ( T a,
T b )

Compare enumerators.

Definition at line 33 of file comparefunctions.h.

◆ compare() [4/4]

template<typename T>
requires (std::is_arithmetic_v<T>)
int swift::misc::Compare::compare ( T a,
T b )

Compare arithmetic values.

Definition at line 18 of file comparefunctions.h.