OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nanoflann::IndexDist_Sorter Struct Reference

operator "<" for std::sort() More...

#include <nanoflann.hpp>

+ Collaboration diagram for nanoflann::IndexDist_Sorter:

Public Member Functions

template<typename PairType >
bool operator() (const PairType &p1, const PairType &p2) const
 PairType will be typically: std::pair<IndexType,DistanceType>
 

Detailed Description

operator "<" for std::sort()

Definition at line 250 of file nanoflann.hpp.

Member Function Documentation

◆ operator()()

template<typename PairType >
bool nanoflann::IndexDist_Sorter::operator() ( const PairType & p1,
const PairType & p2 ) const
inline

PairType will be typically: std::pair<IndexType,DistanceType>

Definition at line 253 of file nanoflann.hpp.

253 {
254 return p1.second < p2.second;
255 }

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