5 #include <libcopp/utils/config/libcopp_build_features.h>
13 #ifdef COPP_HAS_ABI_HEADERS
14 # include COPP_ABI_PREFIX
17 LIBCOPP_COPP_NAMESPACE_BEGIN
26 template <
typename TPool>
45 void attach(
const std::shared_ptr<pool_type> &p) LIBCOPP_MACRO_NOEXCEPT { pool_ = p; }
67 pool_->deallocate(ctx);
72 std::shared_ptr<pool_type>
pool_;
75 LIBCOPP_COPP_NAMESPACE_END
77 #ifdef COPP_HAS_ABI_HEADERS
78 # include COPP_ABI_SUFFIX
memory allocator this allocator will maintain buffer using malloc/free function
std::shared_ptr< pool_type > pool_
stack_allocator_pool() LIBCOPP_MACRO_NOEXCEPT
stack_allocator_pool(const std::shared_ptr< pool_type > &p) LIBCOPP_MACRO_NOEXCEPT
void deallocate(stack_context &ctx) LIBCOPP_MACRO_NOEXCEPT
void allocate(stack_context &ctx, std::size_t) LIBCOPP_MACRO_NOEXCEPT
void attach(const std::shared_ptr< pool_type > &p) LIBCOPP_MACRO_NOEXCEPT