11 #ifndef ASIO_DETAIL_HANDLER_ALLOC_HELPERS_HPP 12 #define ASIO_DETAIL_HANDLER_ALLOC_HELPERS_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 30 template <
typename Handler>
33 #if !defined(ASIO_HAS_HANDLER_HOOKS) 34 return ::operator
new(
s);
41 template <
typename Handler>
44 #if !defined(ASIO_HAS_HANDLER_HOOKS) 54 #define ASIO_DEFINE_HANDLER_PTR(op) \ 73 asio_handler_alloc_helpers::deallocate(v, sizeof(op), *h); \ 82 #endif // ASIO_DETAIL_HANDLER_ALLOC_HELPERS_HPP ASIO_DECL void * asio_handler_allocate(std::size_t size,...)
Default allocation function for handlers.
ASIO_DECL void asio_handler_deallocate(void *pointer, std::size_t size,...)
Default deallocation function for handlers.
void asio_handler_deallocate(void *pointer, std::size_t size, binder1< Handler, Arg1 > *this_handler)
void * asio_handler_allocate(std::size_t size, binder1< Handler, Arg1 > *this_handler)
void deallocate(void *p, std::size_t s, Handler &h)
void * allocate(std::size_t s, Handler &h)