12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef BOOST_COMPUTE_ALGORITHM_GENERATE_N_HPP
- #define BOOST_COMPUTE_ALGORITHM_GENERATE_N_HPP
- #include <boost/compute/system.hpp>
- #include <boost/compute/command_queue.hpp>
- #include <boost/compute/algorithm/generate.hpp>
- namespace boost {
- namespace compute {
- template<class OutputIterator, class Size, class Generator>
- inline void generate_n(OutputIterator first,
- Size count,
- Generator generator,
- command_queue &queue = system::default_queue())
- {
- ::boost::compute::generate(first, first + count, generator, queue);
- }
- }
- }
- #endif
|