PCL
|
A functional class that applies the less than relational operator to the objects pointed to by two pointers. More...
#include <Indirect.h>
Public Member Functions | |
bool | operator() (TPtr ptr1, TPtr ptr2) const |
Definition at line 299 of file Indirect.h.
|
inline |
Function call operator. Returns true iff *ptr1 < *ptr2.
If either of ptr1 or ptr2 is nullptr, no operation is performed on any pointed object and the return value is ptr2 < ptr1. This ensures that when sorting lists of pointers indirectly, all null pointers will be packed at the bottom of the sorted list.
Definition at line 309 of file Indirect.h.