MCPcopy Create free account
hub / github.com/boostorg/compute / fill_with_copy

Function fill_with_copy

include/boost/compute/algorithm/fill.hpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40// fills the range [first, first + count) with value using copy()
41template<class BufferIterator, class T>
42inline void fill_with_copy(BufferIterator first,
43 size_t count,
44 const T &value,
45 command_queue &queue)
46{
47 ::boost::compute::copy(
48 ::boost::compute::make_constant_iterator(value, 0),
49 ::boost::compute::make_constant_iterator(value, count),
50 first,
51 queue
52 );
53}
54
55// fills the range [first, first + count) with value using copy_async()
56template<class BufferIterator, class T>

Callers 1

dispatch_fillFunction · 0.85

Calls 2

copyFunction · 0.85
make_constant_iteratorFunction · 0.85

Tested by

no test coverage detected