| 68 | queue |
| 69 | ); |
| 70 | CHECK_RANGE_EQUAL( |
| 71 | int, 10, vector, |
| 72 | (42, 42, 42, 42, 42, 42, 42, 42, 42, 42) |
| 73 | ); |
| 74 | } |
| 75 | |
| 76 | BOOST_AUTO_TEST_CASE(fill_with_copy_doctest) |
| 77 | { |
| 78 | //! [fill_with_copy] |
| 79 | using boost::compute::make_constant_iterator; |
| 80 | |
| 81 | boost::compute::vector<int> result(5, context); |
| 82 | |
| 83 | boost::compute::copy( |
| 84 | make_constant_iterator(42, 0), |
| 85 | make_constant_iterator(42, result.size()), |
| 86 | result.begin(), |
| 87 | queue |
| 88 | ); |
| 89 | |
| 90 | // result == { 42, 42, 42, 42, 42 } |
| 91 | //! [fill_with_copy] |
| 92 | |
| 93 | CHECK_RANGE_EQUAL(int, 5, result, (42, 42, 42, 42, 42)); |
| 94 | } |
| 95 | |
| 96 | BOOST_AUTO_TEST_SUITE_END() |
nothing calls this directly
no test coverage detected