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