forward_property#
-
template<class _Derived, class _Upstream>
using cuda::forward_property = __forward_property::__fn<_Derived, _Upstream># The
forward_propertyCRTP template allows Derived to forward all properties of Upstream.class UpstreamWithProperties; class DerivedClass : cuda::forward_properties<DerivedClass, UpstreamWithProperties> { // This method is needed to forward stateful properties UpstreamWithProperties& upstream_resource() const { ... } };
Note
In order to forward stateful properties, a type needs to implement either: - an upstream_resource() method returning the upstream resource, or - a get() method returning the upstream resource.