Allocator Builder
Policy Based C++ Template Allocator Library
 All Classes Functions Variables Enumerations Enumerator Groups Pages
Shared Allocators

Classes

class  alb::v_100::affix_allocator< Allocator, Prefix, Sufix >
 
class  alb::v_100::aligned_mallocator< DefaultAlignment >
 
class  alb::v_100::bucketizer< Allocator, MinSize, MaxSize, StepSize >
 
class  alb::v_100::cascading_allocator_base< Shared, Allocator >
 
class  alb::v_100::fallback_allocator< Primary, Fallback >
 
class  alb::v_100::freelist_base< Shared, Allocator, MinSize, MaxSize, PoolSize, NumberOfBatchAllocations >
 
class  alb::v_100::shared_freelist< Allocator, MinSize, MaxSize, PoolSize, NumberOfBatchAllocations >
 
class  alb::v_100::mallocator
 
class  alb::v_100::segregator< Threshold, SmallAllocator, LargeAllocator >
 
class  alb::v_100::shared_heap< Allocator, NumberOfChunks, ChunkSize >
 

Functions

bool alb::v_100::segregator< Threshold, SmallAllocator, LargeAllocator >::reallocate (block &b, size_t n) noexcept
 

Detailed Description

Function Documentation

template<size_t Threshold, class SmallAllocator , class LargeAllocator >
bool alb::v_100::segregator< Threshold, SmallAllocator, LargeAllocator >::reallocate ( block b,
size_t  n 
)
inlinenoexcept

Reallocates the given block to the given size. If the new size crosses the Threshold, then a memory move will be performed.

Parameters
bThe block to be changed
nThe new size
Returns
True, if the operation was successful

Definition at line 90 of file segregator.hpp.