7 #include <boost/memory/memory_block.hpp> 10 namespace boost {
namespace memory {
25 typename primary_allocator,
26 typename secondary_allocator>
73 primary_allocator& get_primary() noexcept;
74 secondary_allocator& get_secondary() noexcept;
77 primary_allocator primary_;
78 secondary_allocator secondary_;
83 #include "fallback_allocator.ipp"
Allocates with secondary allocator, if allocation with primary allocator fails.
bool owns(memory_block &block)
Examines if the given block is owned by this allocator.
void deallocate(memory_block &block)
Deallocates the given memory_block.
Represents an allocated memory block.
memory_block allocate(std::size_t size)
Allocates a memory_block with either primary_allocator or secondary_allocator.