| 64 | temporary_array(thrust::execution_policy<System> &system, size_type n) : super_t(system, n) {}; |
| 65 | |
| 66 | TEMP_HOST_DEVICE_DECORATORS |
| 67 | temporary_array(thrust::execution_policy<System> &system, size_type n, T init) : super_t(system, n) { |
| 68 | super_t::uninitialized_copy(system, thrust::constant_iterator<T>(init), thrust::constant_iterator<T>(init) + n, super_t::begin()); |
| 69 | }; |
| 70 | |
| 71 | // provide a kill-switch to explicitly avoid initialization |
| 72 | TEMP_HOST_DEVICE_DECORATORS |