![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/allocator-handle.hpp"
Placeholder implementation for a custom allocator.
shall be replaced by an AllocationCluster eventually
5/2024 to be reworked and aligned with a prospective C++20 Allocator Concept /////////////////////TICKET #1366
std::list container, since re-entrant allocation calls are possible, meaning that further allocations will be requested recursively from a ctor. Moreover, for the same reason we separate the allocation from the ctor call, so we can capture the address of the new allocation prior to any possible re-entrant call, and handle clean-up of allocation without requiring any additional state flags..... Definition at line 296 of file allocator-handle.hpp.
Classes | |
| struct | Allocation |
Public Member Functions | |
| template<typename... ARGS> | |
| TY & | operator() (ARGS &&...args) |
| ~AllocatorHandle () | |
Private Attributes | |
| std::list< Allocation > | storage_ |
|
inline |
Definition at line 347 of file allocator-handle.hpp.
References AllocatorHandle< TY >::storage_.
|
inline |
Definition at line 327 of file allocator-handle.hpp.
References lumiera_error(), and AllocatorHandle< TY >::storage_.
Here is the call graph for this function:
|
private |
Definition at line 322 of file allocator-handle.hpp.
Referenced by AllocatorHandle< TY >::~AllocatorHandle(), and AllocatorHandle< TY >::operator()().
Inheritance diagram for AllocatorHandle< TY >:
Collaboration diagram for AllocatorHandle< TY >: