natural_sort::less< T > Struct Template Reference

A list compare binary predicate for natural sort. More...

Public Member Functions

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

Public Attributes

const UList< T > & values

Detailed Description

template<class T>
struct Foam::stringOps::natural_sort::less< T >

A list compare binary predicate for natural sort.

Definition at line 94 of file stringOpsSort.H.

Constructor & Destructor Documentation

◆ less()

less ( const UList< T > &  list)

Definition at line 98 of file stringOpsSort.H.

Member Function Documentation

◆ operator()()

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

Definition at line 103 of file stringOpsSort.H.

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

Here is the call graph for this function:

Member Data Documentation

◆ values

const UList<T>& values

Definition at line 96 of file stringOpsSort.H.

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

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