A wrapper for a binary comparison of values that interjects pointer dereferencing with null pointer guards. More...
#include <UPtrList.H>
Public Member Functions | |
| value_compare (const Compare &cmp) | |
| bool | operator() (const T *const a, const T *const b) const |
| Compare dereferenced pointers. | |
Public Attributes | |
| const Compare & | comp |
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 173 of file UPtrList.H.
Definition at line 177 of file UPtrList.H.
References comp.
|
inline |
Compare dereferenced pointers.
Definition at line 185 of file UPtrList.H.
References b, comp, and Foam::T().

Definition at line 175 of file UPtrList.H.
Referenced by operator()(), and value_compare().