MCPcopy Create free account
hub / github.com/alibaba/yalantinglibs / aligned_free

Function aligned_free

include/ylt/util/concurrentqueue.h:4251–4256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4249
4250 template <typename TAlign>
4251 static inline void aligned_free(void* ptr) {
4252 MOODYCAMEL_CONSTEXPR_IF(std::alignment_of<TAlign>::value <=
4253 std::alignment_of<details::max_align_t>::value)
4254 return (Traits::free)(ptr);
4255 else(Traits::free)(ptr ? *(reinterpret_cast<void**>(ptr) - 1) : nullptr);
4256 }
4257
4258 template <typename U>
4259 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