| 253 | * The \a size parameters tells on how many objects to call the destructor of T. |
| 254 | */ |
| 255 | template<typename T> EIGEN_DEVICE_FUNC inline void destruct_elements_of_array(T *ptr, std::size_t size) |
| 256 | { |
| 257 | // always destruct an array starting from the end. |
| 258 | if(ptr) |
| 259 | while(size) ptr[--size].~T(); |
| 260 | } |
| 261 | |
| 262 | /** \internal Constructs the elements of an array. |
| 263 | * The \a size parameter tells on how many objects to call the constructor of T. |
no outgoing calls
no test coverage detected