struct nanoflann::IndexDist_Sorter

operator “<” for std::sort()

#include <nanoflann.hpp>

struct IndexDist_Sorter
{
    //
methods

    template <typename PairType>
    bool operator () (const PairType& p1, const PairType& p2) const;
};

Methods

template <typename PairType>
bool operator () (
    const PairType& p1,
    const PairType& p2
    ) const

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