graph
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
CUDAManagedAllocator< T > Struct Template Reference

#include <cuda_managed.hpp>

Public Types

typedef T value_type
 

Public Member Functions

 CUDAManagedAllocator ()=default
 
template<class U >
constexpr CUDAManagedAllocator (const CUDAManagedAllocator< U > &) noexcept
 
T * allocate (std::size_t n)
 
void deallocate (T *p, std::size_t) noexcept
 

Member Typedef Documentation

◆ value_type

template<class T >
typedef T CUDAManagedAllocator< T >::value_type

Constructor & Destructor Documentation

◆ CUDAManagedAllocator() [1/2]

template<class T >
CUDAManagedAllocator< T >::CUDAManagedAllocator ( )
default

◆ CUDAManagedAllocator() [2/2]

template<class T >
template<class U >
constexpr CUDAManagedAllocator< T >::CUDAManagedAllocator ( const CUDAManagedAllocator< U > &  )
inlinenoexcept

Member Function Documentation

◆ allocate()

template<class T >
T* CUDAManagedAllocator< T >::allocate ( std::size_t  n)
inline

◆ deallocate()

template<class T >
void CUDAManagedAllocator< T >::deallocate ( T *  p,
std::size_t   
)
inlinenoexcept

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