thrust
Classes | Functions
Memory Management Classes

Classes

class  thrust::device_allocator< T >
 
class  thrust::device_allocator< void >
 
class  thrust::device_malloc_allocator< T >
 
class  thrust::device_new_allocator< T >
 
class  thrust::device_reference< T >
 
class  thrust::device_ptr< typename >
 
class  thrust::pointer< Element, Tag, Reference, Derived >
 
class  thrust::reference< Element, Pointer, Derived >
 
class  thrust::system::cuda::experimental::pinned_allocator< T >
 
class  thrust::system::cuda::experimental::pinned_allocator< void >
 

Functions

template<class E , class T , class Y >
std::basic_ostream< E, T > & thrust::operator<< (std::basic_ostream< E, T > &os, const device_ptr< Y > &p)
 
template<typename T >
__host__ __device__ void thrust::swap (device_reference< T > &x, device_reference< T > &y)
 

Detailed Description

Function Documentation

template<class E , class T , class Y >
std::basic_ostream<E, T>& thrust::operator<< ( std::basic_ostream< E, T > &  os,
const device_ptr< Y > &  p 
)
inline

This operator outputs the value of a device_ptr's raw pointer to a std::basic_ostream.

Parameters
osThe std::basic_ostream of interest.
pThe device_ptr of interest.
Returns
os.
template<typename T >
__host__ __device__ void thrust::swap ( device_reference< T > &  x,
device_reference< T > &  y 
)

swaps the value of one device_reference with another. x The first device_reference of interest. y The second device_reference of interest.