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