thrust::mr::memory_resource< void * >#

template<>
class memory_resource<void*>#

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#