20 template<
typename TElem,
typename TAllocator>
21 struct DevType<std::vector<TElem, TAllocator>>
27 template<
typename TElem,
typename TAllocator>
28 struct GetDev<std::vector<TElem, TAllocator>>
37 template<
typename TElem,
typename TAllocator>
38 struct DimType<std::vector<TElem, TAllocator>>
44 template<
typename TElem,
typename TAllocator>
45 struct ElemType<std::vector<TElem, TAllocator>>
50 template<
typename TElem,
typename TAllocator>
56 return {std::size(a)};
61 template<
typename TElem,
typename TAllocator>
66 return std::data(view);
71 return std::data(view);
76 template<
typename TElem,
typename TAllocator>
87 template<
typename TElem,
typename TAllocator>
88 struct IdxType<std::vector<TElem, TAllocator>>
typename trait::IdxType< T >::type Idx
ALPAKA_FN_HOST auto getDevByIdx(TPlatform const &platform, std::size_t const &devIdx) -> Dev< TPlatform >
std::integral_constant< std::size_t, N > DimInt
The dimension getter type trait.
static ALPAKA_FN_HOST auto getDev(std::vector< TElem, TAllocator > const &) -> DevCpu
constexpr ALPAKA_FN_HOST auto operator()(std::vector< TElem, TAllocator > const &a) -> Vec< DimInt< 1 >, Idx< std::vector< TElem, TAllocator >>>
The GetExtents trait for getting the extents of an object as an alpaka::Vec.
ALPAKA_FN_HOST auto operator()(std::vector< TElem, TAllocator > const &) const -> Vec< DimInt< 1 >, Idx< std::vector< TElem, TAllocator >>>
The GetOffsets trait for getting the offsets of an object as an alpaka::Vec.
static ALPAKA_FN_HOST auto getPtrNative(std::vector< TElem, TAllocator > &view) -> TElem *
static ALPAKA_FN_HOST auto getPtrNative(std::vector< TElem, TAllocator > const &view) -> TElem const *
The native pointer get trait.