thrust::system::tbb::universal_pointer
Defined in thrust/system/tbb/pointer.h
- 
template<typename T>
 using thrust::system::tbb::universal_pointer = thrust::pointer<T, thrust::system::tbb::tag, typename std::add_lvalue_reference<T>::type>
- tbb::universal_pointerstores a pointer to an object allocated in memory accessible by the- tbbsystem and host systems.- tbb::universal_pointerhas pointer semantics: it may be dereferenced and manipulated with pointer arithmetic.- tbb::universal_pointercan be created with- tbb::universal_allocatoror by explicitly calling its constructor with a raw pointer.- The raw pointer encapsulated by a - tbb::universal_pointermay be obtained by either its- getmember function or the- raw_pointer_castfunction.- See also - tbb::universal_allocator - See also - raw_pointer_cast - Note - tbb::universal_pointeris not a “smart” pointer; it is the programmer’s responsibility to deallocate memory pointed to by- tbb::universal_pointer.- Template Parameters
- T – specifies the type of the pointee.