| 332 | */ |
| 333 | template <typename T> |
| 334 | EIGEN_DEVICE_FUNC inline void destruct_elements_of_array(T* ptr, std::size_t size) { |
| 335 | // always destruct an array starting from the end. |
| 336 | if (ptr) |
| 337 | while (size) ptr[--size].~T(); |
| 338 | } |
| 339 | |
| 340 | /** \internal Constructs the elements of an array. |
| 341 | * The \a size parameter tells on how many objects to call the constructor of T. |
no outgoing calls
no test coverage detected