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

Function fill_async

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

Source from the content-addressed store, hash-verified

294
295template<class BufferIterator, class T>
296inline future<void> fill_async(BufferIterator first,
297 BufferIterator last,
298 const T &value,
299 command_queue &queue = system::default_queue())
300{
301 BOOST_STATIC_ASSERT(detail::is_buffer_iterator<BufferIterator>::value);
302 size_t count = detail::iterator_range_size(first, last);
303 if(count == 0){
304 return future<void>();
305 }
306
307 return detail::dispatch_fill_async(first, count, value, queue);
308}
309
310} // end compute namespace
311} // end boost namespace

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

iterator_range_sizeFunction · 0.85
dispatch_fill_asyncFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68