DDC 0.0.0

a discrete domain computation library

KokkosAllocator< T, MemorySpace > Class Template Reference

Classes

struct  rebind
 

Public Types

using value_type = T
 
using memory_space = MemorySpace
 

Public Member Functions

constexpr KokkosAllocator ()=default
 
constexpr KokkosAllocator (KokkosAllocator const &x)=default
 
constexpr KokkosAllocator (KokkosAllocator &&x) noexcept=default
 
template<class U >
constexpr KokkosAllocator (KokkosAllocator< U, MemorySpace > const &b) noexcept
 
 ~KokkosAllocator ()=default
 
constexpr KokkosAllocatoroperator= (KokkosAllocator const &x)=default
 
constexpr KokkosAllocatoroperator= (KokkosAllocator &&x) noexcept=default
 
template<class U >
constexpr KokkosAllocatoroperator= (KokkosAllocator< U, MemorySpace > const &b) noexcept
 
T * allocate (std::size_t n) const
 
void deallocate (T *p, std::size_t) const
 

Class Documentation

◆ KokkosAllocator::rebind

struct KokkosAllocator::rebind

template<class T, class MemorySpace>
template<class U>
struct KokkosAllocator< T, MemorySpace >::rebind< U >

Class Members
typedef KokkosAllocator< U, MemorySpace > other

Member Typedef Documentation

◆ value_type

template<class T , class MemorySpace >
using KokkosAllocator< T, MemorySpace >::value_type = T

◆ memory_space

template<class T , class MemorySpace >
using KokkosAllocator< T, MemorySpace >::memory_space = MemorySpace

Constructor & Destructor Documentation

◆ KokkosAllocator() [1/4]

template<class T , class MemorySpace >
constexpr KokkosAllocator< T, MemorySpace >::KokkosAllocator ( )
constexprdefault

◆ KokkosAllocator() [2/4]

template<class T , class MemorySpace >
constexpr KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< T, MemorySpace > const &  x)
constexprdefault

◆ KokkosAllocator() [3/4]

template<class T , class MemorySpace >
constexpr KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< T, MemorySpace > &&  x)
constexprdefaultnoexcept

◆ KokkosAllocator() [4/4]

template<class T , class MemorySpace >
template<class U >
constexpr KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< U, MemorySpace > const &  b)
inlineexplicitconstexprnoexcept

◆ ~KokkosAllocator()

template<class T , class MemorySpace >
KokkosAllocator< T, MemorySpace >::~KokkosAllocator ( )
default

Member Function Documentation

◆ operator=() [1/3]

template<class T , class MemorySpace >
constexpr KokkosAllocator& KokkosAllocator< T, MemorySpace >::operator= ( KokkosAllocator< T, MemorySpace > const &  x)
constexprdefault

◆ operator=() [2/3]

template<class T , class MemorySpace >
constexpr KokkosAllocator& KokkosAllocator< T, MemorySpace >::operator= ( KokkosAllocator< T, MemorySpace > &&  x)
constexprdefaultnoexcept

◆ operator=() [3/3]

template<class T , class MemorySpace >
template<class U >
constexpr KokkosAllocator& KokkosAllocator< T, MemorySpace >::operator= ( KokkosAllocator< U, MemorySpace > const &  b)
inlineconstexprnoexcept

◆ allocate()

template<class T , class MemorySpace >
T* KokkosAllocator< T, MemorySpace >::allocate ( std::size_t  n) const
inline

◆ deallocate()

template<class T , class MemorySpace >
void KokkosAllocator< T, MemorySpace >::deallocate ( T *  p,
std::size_t   
) const
inline

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