thrust::system::tbb::pointer
Defined in thrust/system/tbb/pointer.h
-
template<typename T>
using thrust::system::tbb::pointer = thrust::pointer<T, thrust::system::tbb::tag, thrust::tagged_reference<T, thrust::system::tbb::tag>> tbb::pointer
stores a pointer to an object allocated in memory accessible by thetbb
system. This type provides type safety when dispatching algorithms on ranges resident intbb
memory.tbb::pointer
has pointer semantics: it may be dereferenced and manipulated with pointer arithmetic.tbb::pointer
can be created with the functiontbb::malloc
, or by explicitly calling its constructor with a raw pointer.The raw pointer encapsulated by a
tbb::pointer
may be obtained by eiter itsget
member function or theraw_pointer_cast
function.See also
tbb::malloc
See also
tbb::free
See also
raw_pointer_cast
Note
tbb::pointer
is not a “smart” pointer; it is the programmer’s responsibility to deallocate memory pointed to bytbb::pointer
.- Template Parameters
T – specifies the type of the pointee.