7 #include <boost/memory/memory_block.hpp> 10 namespace boost {
namespace memory {
28 std::size_t threshold,
29 typename primary_allocator,
30 typename secondary_allocator>
72 primary_allocator primary_;
73 secondary_allocator secondary_;
78 #include "segregator.ipp" secondary_allocator & get_secondary() noexcept
Gets a reference to the secondary allocator.
void deallocate(memory_block &block)
Deallocates the given memory_block if possible.
primary_allocator & get_primary() noexcept
Gets a reference to the primary allocator.
memory_block allocate(std::size_t size)
Allocates a memory block of the given size.
bool owns(memory_block &block)
Checks if the given memory block has been allocated by this allocator.
Represents an allocated memory block.
Segregates allocation strategies according to the given allocation size threshold.