3 #include <boost/memory/memory_block.hpp> 5 namespace boost {
namespace memory {
25 template <
typename allocator_type>
56 allocator_type& allocator_;
63 #include "allocation_guard.ipp"
~allocation_guard()
Deallocates the block.
allocation_guard & operator=(const allocation_guard &other)=delete
Not-copy assignable.
allocation_guard(allocator_type &allocator, size_t size)
Allocates a block of given size in RAII style.
Provides a convenient RAII-style mechanism for owning a memory block.
Represents an allocated memory block.