UPtrList< T >::value_compare< Compare > Struct Template Reference

Public Member Functions

 value_compare (const Compare &cmp)
bool operator() (const T *const a, const T *const b) const
 Compare dereferenced pointers. More...

Public Attributes

const Compare & comp

Detailed Description

template<class T>
template<class Compare>
struct Foam::UPtrList< T >::value_compare< Compare >

A wrapper for a binary comparison of values that interjects pointer dereferencing with null pointer guards.

It will also sort any null pointers to the end (eg, rubbish that can be truncated)

Definition at line 119 of file UPtrList.H.

Constructor & Destructor Documentation

◆ value_compare()

value_compare ( const Compare &  cmp)

Definition at line 123 of file UPtrList.H.

Member Function Documentation

◆ operator()()

bool operator() ( const T *const  a,
const T *const  b 
) const

Compare dereferenced pointers.

Definition at line 129 of file UPtrList.H.

References b, bool, and UPtrList< T >::value_compare< Compare >::comp.

Member Data Documentation

◆ comp

const Compare& comp

Definition at line 121 of file UPtrList.H.

Referenced by UPtrList< T >::value_compare< Compare >::operator()().

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