Class thrust::mr::memory_resource< void * >
class thrust::mr::memory_resource< void * > { public: typedef see below pointer;
virtual ~memory_resource() = default;
_CCCL_NODISCARD pointer allocate(std::size_t bytes, std::size_t alignment = alignof(std::max_align_t));
void deallocate(pointer p, std::size_t bytes, std::size_t alignment = alignof(std::max_align_t));
_CCCL_HOST_DEVICE bool is_equal(const memory_resource & other) const;
virtual pointer do_allocate(std::size_t bytes, std::size_t alignment) = 0;
virtual void do_deallocate(pointer p, std::size_t bytes, std::size_t alignment) = 0;
virtual _CCCL_HOST_DEVICE bool do_is_equal(const memory_resource & other) const; };
Member Types
Typedef thrust::mr::memory_resource< void * >::pointer
typedef void *pointer;
Member Functions
Function thrust::mr::memory_resource< void * >::~memory_resource
virtual ~memory_resource() = default;
Function thrust::mr::memory_resource< void * >::allocate
_CCCL_NODISCARD pointer allocate(std::size_t bytes, std::size_t alignment = alignof(std::max_align_t));
Function thrust::mr::memory_resource< void * >::deallocate
void deallocate(pointer p, std::size_t bytes, std::size_t alignment = alignof(std::max_align_t));
Function thrust::mr::memory_resource< void * >::is_equal
_CCCL_HOST_DEVICE bool is_equal(const memory_resource & other) const;
Function thrust::mr::memory_resource< void * >::do_allocate
virtual pointer do_allocate(std::size_t bytes, std::size_t alignment) = 0;
Function thrust::mr::memory_resource< void * >::do_deallocate
virtual void do_deallocate(pointer p, std::size_t bytes, std::size_t alignment) = 0;
Function thrust::mr::memory_resource< void * >::do_is_equal
virtual _CCCL_HOST_DEVICE bool do_is_equal(const memory_resource & other) const;