less< T > Struct Template Reference

A UPtrList compare binary predicate for normal sort. More...

Public Member Functions

 less (const UPtrList< T > &list)
bool operator() (const label a, const label b) const

Public Attributes

const UPtrList< T > & values

Detailed Description

template<class T>
struct Foam::PtrListOps::less< T >

A UPtrList compare binary predicate for normal sort.

Null entries sort to the end

Definition at line 99 of file PtrListOps.H.

Constructor & Destructor Documentation

◆ less()

less ( const UPtrList< T > &  list)

Definition at line 103 of file PtrListOps.H.

Member Function Documentation

◆ operator()()

bool operator() ( const label  a,
const label  b 
) const

Definition at line 108 of file PtrListOps.H.

References Foam::constant::physicoChemical::b, Foam::T(), and less< T >::values.

Here is the call graph for this function:

Member Data Documentation

◆ values

const UPtrList<T>& values

Definition at line 101 of file PtrListOps.H.

Referenced by less< T >::operator()().

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