thrust

◆ do_deallocate()

template<typename Upstream>
virtual void thrust::mr::unsynchronized_pool_resource< Upstream >::do_deallocate ( void_ptr  p,
std::size_t  bytes,
std::size_t  alignment = alignof(max_align_t) 
)
inlinevirtual

Deallocates memory pointed to by p.

Parameters
ppointer to be deallocated
bytesthe size of the allocation. This must be equivalent to the value of bytes that was passed to the allocation function that returned p.
alignmentthe size of the allocation. This must be equivalent to the value of alignment that was passed to the allocation function that returned p.

Implements thrust::mr::memory_resource< Upstream::pointer >.

References thrust::mr::pool_options::alignment, thrust::mr::pool_options::cache_oversized, thrust::get(), thrust::mr::pool_options::largest_block_size, thrust::raw_reference_cast(), and thrust::mr::pool_options::smallest_block_size.