Resize without keeping the data*/
| 134 | |
| 135 | /* Resize without keeping the data*/ |
| 136 | void ResizeNoCopy(::sycl::queue* qu, size_t size_new) { |
| 137 | if (size_new <= capacity_) { |
| 138 | size_ = size_new; |
| 139 | } else { |
| 140 | size_ = size_new; |
| 141 | capacity_ = size_new; |
| 142 | data_ = allocate_memory_(qu, size_); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | void Resize(::sycl::queue* qu, size_t size_new, T v) { |
| 147 | if (size_new <= size_) { |
no outgoing calls
no test coverage detected