swift
Namespaces | Functions
comparefunctions.h File Reference

Go to the source code of this file.

Namespaces

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

Functions

template<typename T , std::enable_if_t< std::is_arithmetic_v< T >, int > = 0>
int swift::misc::Compare::compare (T a, T b)
 Compare arithmetic values. More...
 
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()

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

Compare arithmetic values.

Compare enumerators.

Definition at line 18 of file comparefunctions.h.