cuda::experimental::mr::any_resource
Defined in include/cuda/experimental/__memory_resource/any_resource.cuh
-
template<class ..._Properties>
using cuda::experimental::mr::any_resource = basic_any_resource<cuda::mr::_AllocType::_Default, _Properties...> Type erased wrapper around a resource
any_resource
wraps any given resource that satisfies the required properties. It owns the contained resource, taking care of construction / destruction. This makes it especially suited for use in e.g. container types that need to ensure that the lifetime of the container exceeds the lifetime of the memory resource used to allocate the storage