template struct nanoflann::array_or_vector_selectorΒΆ

Used to declare fixed-size arrays when DIM>0, dynamically-allocated vectors when DIM=-1.

Fixed size version for a generic DIM:

#include <nanoflann.hpp>

template <int DIM, typename T>
struct array_or_vector_selector
{
    // typedefs

    typedef CArray<T, DIM> container_t;
};