MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / destruct_elements_of_array

Function destruct_elements_of_array

include/Eigen/src/Core/util/Memory.h:334–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 */
333template <typename T>
334EIGEN_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.

Calls

no outgoing calls

Tested by

no test coverage detected