8#ifndef SRC_VECTOR_UTIL_HPP_
9#define SRC_VECTOR_UTIL_HPP_
11#include "util/common.hpp"
14template<
typename T,
typename Sfinae =
void>
27struct is_vector<T, typename
Void< typename T::yes_i_am_vector>::type > : std::true_type
32template<
typename T,
typename Sfinae =
void>
46struct is_vector_native<T, typename
Void< typename std::remove_reference<T>::type::yes_i_am_vector_native>::type > : std::true_type
51template<
typename T,
typename Sfinae =
void>
65struct is_vector_dist<T, typename
Void< typename T::yes_i_am_vector_dist>::type > : std::true_type
73template<
typename T,
typename Sfinae =
void>
86template<
typename T,
typename Sfinae =
void>
102template<
typename data_type>
129 if (
data.template getPointer<T::value>() ==
ptr)
this class is a functor for "for_each" algorithm
void * ptr
pointer to check
void operator()(T &t)
It call the copy function for each property.
check_device_ptr(void *ptr, data_type &data)
constructor
data_type & data
Data to check.
Check this is a gpu or cpu type cell-list.
Check this is a gpu or cpu type cell-list.