MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / destroy_array

Function destroy_array

deps/concurrentqueue/concurrentqueue.h:3612–3620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

~ConcurrentQueueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected