compareOp< T > Struct Template Reference

Three-way comparison operation of two parameters,. More...

Public Member Functions

int operator() (const T &a, const T &b) const
 

Detailed Description

template<class T>
struct Foam::compareOp< T >

Three-way comparison operation of two parameters,.

similar to the <=> operator in C++20.

Returns
a negative value for less, a positive value for greater, and zero for equal value.

Definition at line 268 of file ops.H.

Member Function Documentation

◆ operator()()

int operator() ( const T a,
const T b 
) const
inline

Definition at line 270 of file ops.H.

References b.


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