| 294 | |
| 295 | template<class BufferIterator, class T> |
| 296 | inline 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 |