cuda::experimental::make_shared_resource#

template<class _Resource, class ..._Args>
auto cuda::experimental::make_shared_resource(
_Args&&... __args,
) -> shared_resource<_Resource>#

Factory function for shared_resource objects#

make_any_synchronous_resource constructs an shared_resource object that wraps a newly constructed instance of the given resource type. The resource type must satisfy the cuda::mr::resource concept and provide all of the properties specified in the template parameter pack.

@param __args The arguments used to construct the instance of the resource type.