MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / aligned_free

Function aligned_free

concurrentqueue.h:3617–3623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3615
3616 template<typename TAlign>
3617 static inline void aligned_free(void* ptr)
3618 {
3619 MOODYCAMEL_CONSTEXPR_IF (std::alignment_of<TAlign>::value <= std::alignment_of<details::max_align_t>::value)
3620 return (Traits::free)(ptr);
3621 else
3622 (Traits::free)(ptr ? *(reinterpret_cast<void**>(ptr) - 1) : nullptr);
3623 }
3624
3625 template<typename U>
3626 static inline U* create_array(size_t count)

Callers

nothing calls this directly

Calls 1

MOODYCAMEL_CONSTEXPR_IFFunction · 0.85

Tested by

no test coverage detected