PCL
pcl::IndirectLess< TPtr > Class Template Reference

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
 

Detailed Description

template<class TPtr>
class pcl::IndirectLess< TPtr >

Definition at line 299 of file Indirect.h.

Member Function Documentation

◆ operator()()

template<class TPtr >
bool pcl::IndirectLess< TPtr >::operator() ( TPtr  ptr1,
TPtr  ptr2 
) const
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.


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