cuda::experimental::mr::any_async_resource
Defined in include/cuda/experimental/__memory_resource/any_resource.cuh
-
template<class ..._Properties>
using cuda::experimental::mr::any_async_resource = basic_any_resource<cuda::mr::_AllocType::_Async, _Properties...> Type erased wrapper around an async_resource
any_async_resource
wraps any given async 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