thrust::mr::get_global_resource

Defined in thrust/mr/memory_resource.h

template<typename MR>
MR *thrust::mr::get_global_resource()

Returns a global instance of MR, created as a function local static variable.

Template Parameters

MR – type of a memory resource to get an instance from. Must be DefaultConstructible.

Returns

a pointer to a global instance of MR.