MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / destroy_array

Function destroy_array

ngscuda/concurrentqueue.h:3617–3625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3615
3616 template<typename U>
3617 static inline void destroy_array(U* p, size_t count)
3618 {
3619 if (p != nullptr) {
3620 assert(count > 0);
3621 for (size_t i = count; i != 0; )
3622 (p + --i)->~U();
3623 }
3624 aligned_free<U>(p);
3625 }
3626
3627 template<typename U>
3628 static inline U* create()

Callers 1

~ConcurrentQueueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected