MCPcopy Create free account
hub / github.com/alibaba/async_simple / aligned_delete

Function aligned_delete

demo_example/asio/asio/detail/memory.hpp:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118inline void aligned_delete(void* ptr)
119{
120#if defined(ASIO_HAS_STD_ALIGNED_ALLOC) && defined(ASIO_HAS_ALIGNOF)
121 std::free(ptr);
122#elif defined(ASIO_HAS_BOOST_ALIGN) && defined(ASIO_HAS_ALIGNOF)
123 boost::alignment::aligned_free(ptr);
124#elif defined(ASIO_MSVC) && defined(ASIO_HAS_ALIGNOF)
125 _aligned_free(ptr);
126#else // defined(ASIO_MSVC) && defined(ASIO_HAS_ALIGNOF)
127 ::operator delete(ptr);
128#endif // defined(ASIO_MSVC) && defined(ASIO_HAS_ALIGNOF)
129}
130
131} // namespace asio
132

Callers 4

~thread_info_baseFunction · 0.85
allocateFunction · 0.85
deallocateFunction · 0.85
deallocateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected