thrust::system::omp::pointer#
-
template<typename T>
using thrust::system::omp::pointer = thrust::pointer<T, thrust::system::omp::tag, thrust::tagged_reference<T, thrust::system::omp::tag>># omp::pointerstores a pointer to an object allocated in memory accessible by theompsystem. This type provides type safety when dispatching algorithms on ranges resident inompmemory.omp::pointerhas pointer semantics: it may be dereferenced and manipulated with pointer arithmetic.omp::pointercan be created with the functionomp::malloc, or by explicitly calling its constructor with a raw pointer.The raw pointer encapsulated by a
omp::pointermay be obtained by either itsgetmember function or theraw_pointer_castfunction.See also
omp::malloc
See also
omp::free
See also
Note
omp::pointeris not a “smart” pointer; it is the programmer’s responsibility to deallocate memory pointed to byomp::pointer.- Template Parameters:
T – specifies the type of the pointee.