Поделиться через


array_view::discard_data Method

Discards the current data underlying this view. This is an optimization hint to the runtime used to avoid copying the current contents of the view to a target accelerator_view that it is accessed on, and its use is recommended if the existing content is not needed. This method is a no-op when used in a restrict(amp) context

void discard_data() const restrict(cpu);

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

array_view Class