thrust
Public Member Functions | List of all members
thrust::mr::new_delete_resource Class Referencefinal

#include <thrust/mr/new.h>

Inheritance diagram for thrust::mr::new_delete_resource:
thrust::mr::memory_resource<>

Public Member Functions

void * do_allocate (std::size_t bytes, std::size_t alignment=alignof(max_align_t))
 
void do_deallocate (void *p, std::size_t bytes, std::size_t alignment=alignof(max_align_t))
 
- Public Member Functions inherited from thrust::mr::memory_resource<>
virtual ~memory_resource ()
 
pointer allocate (std::size_t bytes, std::size_t alignment=alignof(max_align_t))
 
void deallocate (pointer p, std::size_t bytes, std::size_t alignment=alignof(max_align_t))
 
__host__ __device__ bool is_equal (const memory_resource &other) const noexcept
 
__host__ virtual __device__ bool do_is_equal (const memory_resource &other) const noexcept
 

Additional Inherited Members

- Public Types inherited from thrust::mr::memory_resource<>
typedef void * pointer
 

Detailed Description

A memory resource that uses global operators new and delete to allocate and deallocate memory. Uses alignment-enabled overloads when available, otherwise uses regular overloads and implements alignment requirements by itself.


The documentation for this class was generated from the following file: