7 #include <boost/memory/alignment.hpp> 8 #include <boost/memory/memory_block.hpp> 9 #include <boost/memory/null_allocator.hpp> 14 namespace boost {
namespace memory {
23 template <std::
size_t capacity, std::
size_t alignment=NO_ALIGNMENT>
53 std::uint8_t reserved_block_[capacity];
54 std::uint8_t* current_ { align_forward<alignment>(reserved_block_) };
59 #include "stack_allocator.ipp" bool owns(memory_block &block) const noexcept
Determines if the block has been allocated with this allocator.
void deallocate(memory_block &block)
Deallocates the block if possible.
Allocates memory block from a fixed range reserved from the current execution stack.
memory_block allocate(std::size_t size)
Allocated a block of the requested size on the stack.
Represents an allocated memory block.