Extended CUDA Library (ecuda)  2.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | List of all members
ecuda::default_device_delete< T > Struct Template Reference

The default destruction policy used by smart pointers to device memory. More...

#include <common.hpp>

Public Member Functions

__HOST__ __DEVICE__ default_device_delete () __NOEXCEPT__
 Constructs an ecuda::default_device_delete object. More...
 
template<typename U >
__HOST__ __DEVICE__ default_device_delete (const default_device_delete< U > &src) __NOEXCEPT__
 Constructs an ecuda::default_device_delete object from another one. More...
 
__HOST__ __DEVICE__ void operator() (T *ptr) const
 Calls cudaFree() on a pointer. More...
 

Detailed Description

template<typename T>
struct ecuda::default_device_delete< T >

The default destruction policy used by smart pointers to device memory.

The CUDA API function cudaFree() is used to deallocate memory.

Definition at line 64 of file common.hpp.

Constructor & Destructor Documentation

Constructs an ecuda::default_device_delete object.

Definition at line 69 of file common.hpp.

template<typename T>
template<typename U >
__HOST__ __DEVICE__ ecuda::default_device_delete< T >::default_device_delete ( const default_device_delete< U > &  src)
inline

Constructs an ecuda::default_device_delete object from another one.

This constructor will only participate in overload resolution if U* is implicitly convertible to T*.

Definition at line 77 of file common.hpp.

Member Function Documentation

template<typename T>
__HOST__ __DEVICE__ void ecuda::default_device_delete< T >::operator() ( T *  ptr) const
inline

Calls cudaFree() on a pointer.

Parameters
ptran object or array to delete

Definition at line 83 of file common.hpp.


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