Class thrust::mr::polymorphic_adaptor_resource
Inherits From: thrust::mr::memory_resource< void * >
template <typename Pointer = void*> class thrust::mr::polymorphic_adaptor_resource { public:
/* Inherited from thrust::mr::memory_resource< void * >
*/ typedef see below pointer;
polymorphic_adaptor_resource(memory_resource< Pointer > * t);
virtual Pointer do_allocate(std::size_t bytes, std::size_t alignment = alignof(std::max_align_t)) override;
virtual void do_deallocate(Pointer p, std::size_t bytes, std::size_t alignment) override;
virtual _CCCL_HOST_DEVICE bool do_is_equal(const memory_resource< Pointer > & other) const override;
/* Inherited from thrust::mr::memory_resource< void * >
*/ virtual ~memory_resource() = default;
/* Inherited from thrust::mr::memory_resource< void * >
*/ _CCCL_NODISCARD pointer allocate(std::size_t bytes, std::size_t alignment = alignof(std::max_align_t));
/* Inherited from thrust::mr::memory_resource< void * >
*/ void deallocate(pointer p, std::size_t bytes, std::size_t alignment = alignof(std::max_align_t));
/* Inherited from thrust::mr::memory_resource< void * >
*/ _CCCL_HOST_DEVICE bool is_equal(const memory_resource & other) const; };
Member Functions
Function thrust::mr::polymorphic_adaptor_resource::polymorphic_adaptor_resource
polymorphic_adaptor_resource(memory_resource< Pointer > * t);
Function thrust::mr::polymorphic_adaptor_resource::do_allocate
virtual Pointer do_allocate(std::size_t bytes, std::size_t alignment = alignof(std::max_align_t)) override;
Function thrust::mr::polymorphic_adaptor_resource::do_deallocate
virtual void do_deallocate(Pointer p, std::size_t bytes, std::size_t alignment) override;
Function thrust::mr::polymorphic_adaptor_resource::do_is_equal
virtual _CCCL_HOST_DEVICE bool do_is_equal(const memory_resource< Pointer > & other) const override;