Allocator Builder
Policy Based C++ Template Allocator Library
|
Enumerations | |
enum | alb::v_100::internal::DynasticOptions : size_t { DynasticUndefined = std::numeric_limits<size_t>::max(), DynasticDynamicSet = std::numeric_limits<size_t>::max() - 1 } |
Functions | |
void | alb::v_100::internal::block_copy (const block &source, block &destination) noexcept |
constexpr size_t | alb::v_100::internal::round_to_alignment (size_t basis, size_t n) noexcept |
template<class OldAllocator , class NewAllocator > | |
bool | alb::v_100::internal::reallocate_with_copy (OldAllocator &oldAllocator, NewAllocator &newAllocator, block &b, size_t n) noexcept |
enum alb::v_100::internal::DynasticOptions : size_t |
Flag to be used inside the Dynastic struct to signal that the value can be changed during runtime.
Definition at line 23 of file dynastic.hpp.
|
noexcept |
Copies std::min(source.length, destination.length) bytes from source to destination
Definition at line 15 of file allocator_base.cpp.
|
noexcept |
Allocates a new block of n bytes with newAllocator, copies min(b.length, n) bytes to it, deallocates the old block b, and returns the new block.
OldAllocator | The allocator that allocated the passed block |
NewAllocator | The allocator that should be used for the new allocation |
oldAllocator | The instance of the allocator that allocated in the past the block. The behavior is undefined if the block was not allocated by it! |
newAllocator | The instance that should be used for the new allocation |
b | The block that should be reallocated by a move of its content |
n | The new size of the block |
Definition at line 35 of file reallocator.hpp.
|
inlinenoexcept |
Returns a upper rounded value of multiples of a
Definition at line 213 of file allocator_base.hpp.