cuda::experimental::any_resource

Defined in include/cuda/experimental/__memory_resource/any_resource.cuh

template<class ..._Properties>
using cuda::experimental::any_resource = basic_any_resource<_ResourceKind::_Synchronous, _Properties...>

Type erased wrapper around a synchronous_resource

any_resource wraps any given synchronous_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

any_resource models the cuda::std::regular concept.