| 75 | queue |
| 76 | ); |
| 77 | CHECK_RANGE_EQUAL( |
| 78 | int, 10, vector, |
| 79 | (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) |
| 80 | ); |
| 81 | } |
| 82 | |
| 83 | BOOST_AUTO_TEST_CASE(iota_with_copy_doctest) |
| 84 | { |
| 85 | //! [iota_with_copy] |
| 86 | using boost::compute::make_counting_iterator; |
| 87 | |
| 88 | boost::compute::vector<int> result(5, context); |
| 89 | |
| 90 | boost::compute::copy( |
| 91 | make_counting_iterator(1), make_counting_iterator(6), result.begin(), queue |
| 92 | ); |
| 93 | |
| 94 | // result == { 1, 2, 3, 4, 5 } |
| 95 | //! [iota_with_copy] |
| 96 | |
| 97 | CHECK_RANGE_EQUAL(int, 5, result, (1, 2, 3, 4, 5)); |
| 98 | } |
| 99 | |
| 100 | BOOST_AUTO_TEST_SUITE_END() |
nothing calls this directly
no test coverage detected