OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
cub::BinaryOpHasIdxParam< T, BinaryOp > Struct Template Reference

Determine whether or not BinaryOp's functor is of the form bool operator()(const T& a, const T&b) or bool operator()(const T& a, const T&b, unsigned int idx) More...

Detailed Description

template<typename T, typename BinaryOp>
struct cub::BinaryOpHasIdxParam< T, BinaryOp >

Determine whether or not BinaryOp's functor is of the form bool operator()(const T& a, const T&b) or bool operator()(const T& a, const T&b, unsigned int idx)

Definition at line 879 of file util_type.cuh.

Data Structures

struct  SFINAE5
 
struct  SFINAE6
 
struct  SFINAE7
 
struct  SFINAE8
 

Static Public Attributes

static const bool HAS_PARAM = sizeof(Test<BinaryOp>(NULL)) == sizeof(char)
 Whether the functor BinaryOp has a third unsigned int index param.
 

Static Private Member Functions

template<typename BinaryOpT >
__host__ static __device__ char Test (SFINAE5< BinaryOpT, &BinaryOpT::operator()> *)
 
template<typename BinaryOpT >
__host__ static __device__ char Test (SFINAE6< BinaryOpT, &BinaryOpT::operator()> *)
 
template<typename BinaryOpT >
__host__ static __device__ char Test (SFINAE7< BinaryOpT, &BinaryOpT::operator()> *)
 
template<typename BinaryOpT >
__host__ static __device__ char Test (SFINAE8< BinaryOpT, &BinaryOpT::operator()> *)
 
template<typename BinaryOpT >
static int Test (...)
 

Field Documentation

◆ HAS_PARAM

template<typename T , typename BinaryOp >
const bool cub::BinaryOpHasIdxParam< T, BinaryOp >::HAS_PARAM = sizeof(Test<BinaryOp>(NULL)) == sizeof(char)
static

Whether the functor BinaryOp has a third unsigned int index param.

Definition at line 908 of file util_type.cuh.


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