#define CCCL_IGNORE_DEPRECATED_API #include #include #include #include #include #include #include int main() { thrust::device_vector data{3, 7, 2, 5}; // add 10 to all values in data thrust::transform(data.begin(), data.end(), cuda::constant_iterator(10), data.begin(), cuda::std::plus()); // data is now [13, 17, 12, 15] // print result thrust::copy(data.begin(), data.end(), std::ostream_iterator(std::cout, "\n")); return 0; }