small_gicp
Static Public Member Functions | Static Public Attributes | List of all members
small_gicp::traits::has_nearest_neighbor_search< T > Struct Template Reference

Check if T has nearest_neighbor_search method. More...

#include <traits.hpp>

Static Public Member Functions

template<typename U , int = (&Traits<U>::nearest_neighbor_search, 0)>
static std::true_type test (U *)
 
static std::false_type test (...)
 

Static Public Attributes

static constexpr bool value = decltype(test((T*)nullptr))::value
 

Detailed Description

template<typename T>
struct small_gicp::traits::has_nearest_neighbor_search< T >

Check if T has nearest_neighbor_search method.

Member Function Documentation

◆ test() [1/2]

template<typename T >
static std::false_type small_gicp::traits::has_nearest_neighbor_search< T >::test (   ...)
static

◆ test() [2/2]

template<typename T >
template<typename U , int = (&Traits<U>::nearest_neighbor_search, 0)>
static std::true_type small_gicp::traits::has_nearest_neighbor_search< T >::test ( U *  )
static

Member Data Documentation

◆ value

template<typename T >
constexpr bool small_gicp::traits::has_nearest_neighbor_search< T >::value = decltype(test((T*)nullptr))::value
staticconstexpr

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