Specialization of this helper-struct for type HeapAllocator. Does not define a member and thus does not increase the footprint of a type that inherits this specialization.
Definition at line 682 of file allocation.inl.
Public Type Index: | |
| using | AllocatorType |
| Exposes the allocator type. | |
Public Static Field Index: | |
| static constexpr HeapAllocator | HEAP_ALLOCATOR_INSTANCE {} |
Public Method Index: | |
| AllocatorMember () | |
| AllocatorMember ()=default | |
| Default Constructor. | |
| AllocatorMember (const HeapAllocator &heapAllocator) noexcept | |
| AllocatorMember (HeapAllocator &pAllocator) noexcept | |
| AllocatorInterface< HeapAllocator > | AI () const noexcept |
| AllocatorInterface< HeapAllocator > | AI () const noexcept |
| HeapAllocator & | GetAllocator () const noexcept |
| HeapAllocator & | GetAllocator () const noexcept |
Protected Field Index: | |
| HeapAllocator * | allocator |
| The allocator stored. | |
| using alib::lang::AllocatorMember< HeapAllocator >::AllocatorType |
Exposes the allocator type.
Definition at line 655 of file allocation.inl.
|
protected |
The allocator stored.
Definition at line 651 of file allocation.inl.
|
staticconstexpr |
This is an empty instance of the empty heap allocation type.. It is used to receive a non-const reference with method GetAllocator.
Definition at line 686 of file allocation.inl.
|
inlinenoexcept |
Constructor.
| heapAllocator | This parameter is ignored, as always HEAP_ALLOCATOR_INSTANCE is used. |
Definition at line 693 of file allocation.inl.
|
inline |
Default constructor. Only applicable if the allocator type is default-constructible, i.e., HeapAllocator.
| TIf | Defaulted, must not be given. |
Definition at line 662 of file allocation.inl.
|
inlinenoexcept |
Constructor.
| pAllocator | A reference to the allocator to store in member allocator. |
Definition at line 666 of file allocation.inl.
|
inlinenoexcept |
This is a convenience operator that returns the AllocatorInterface for the stored allocator (by calling Allocator::operator()()).
Definition at line 676 of file allocation.inl.
|
inlinenoexcept |
This is a convenience operator which returns the AllocatorInterface for the stored allocator (by calling Allocator::operator()()).
Definition at line 703 of file allocation.inl.
|
inlinenoexcept |
Returns the reference to the allocator.
Definition at line 671 of file allocation.inl.
|
inlinenoexcept |
Static implementation of interface function. (Optimized out.)
Definition at line 697 of file allocation.inl.