Explicit USM: fill

fill

class handler {
 ...
 public:
  ...
  template <typename T>
  void fill(void* ptr, const T& pattern, size_t count)
};

class queue {
 ...
 public:
  ...
  template <typename T>
  event fill(void* ptr, const T& pattern, size_t count);
};

Parameters

void* ptr

Pointer to the memory to fill.

const T& pattern

Pattern to be filled. T should be trivially copyable.

size_t count

Number of times to fill pattern into ptr.

Return Value

Returns an event representing the fill operation or void if on the handler.