Loading...
Searching...
No Matches
compareOp< T > Struct Template Reference

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

#include <ops.H>

Inheritance diagram for compareOp< T >:

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 258 of file ops.H.

Member Function Documentation

◆ operator()()

template<class T>
int operator() ( const T & a,
const T & b ) const
inlinenodiscard

Definition at line 260 of file ops.H.

References b, and Foam::T().

Here is the call graph for this function:

The documentation for this struct was generated from the following file:
  • src/OpenFOAM/primitives/ops/ops.H