syclreference.com
  1. SYCL
  2. | API Reference
  3. | Allocators
  4. | cast_base_allocator

cast_base_allocator

Retrieves the original user-supplied allocator from the stored detail allocator object.


template <class AllocatorT>
static AllocatorT cast_base_allocator(cl::sycl::detail::base_allocator * base)
(1)
  1. Retrieves the original user-supplied allocator from the stored detail allocator object.
    Parameters:
    • cl::sycl::detail::base_allocator * base : Pointer to the detail allocator object
    Returns: The original allocator object

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000