thrust::mr::memory_resource< void * >

Defined in thrust/mr/memory_resource.h

template<>
class memory_resource<void*>

Subclassed by thrust::mr::polymorphic_adaptor_resource< Pointer >

Public Types

using pointer = void*

Public Functions

virtual ~memory_resource() = default
inline pointer allocate(std::size_t bytes, std::size_t alignment = THRUST_MR_DEFAULT_ALIGNMENT)
inline void deallocate(pointer p, std::size_t bytes, std::size_t alignment = THRUST_MR_DEFAULT_ALIGNMENT) noexcept
inline bool is_equal(const memory_resource &other) const noexcept
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
inline virtual bool do_is_equal(const memory_resource &other) const noexcept