Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/allocator-handle.hpp"
< Concepts and Adaptors for custom memory management
TICKET #1366 : define Allocator Concepts here TODO the following Concepts can be expected here (with C++20)
std::allocator
ALO | a std::allocator instance or anything compliant to Allocator |
Definition at line 87 of file allocator-handle.hpp.
Public Member Functions | |
StdFactory (Allo allo=Allo{}) | |
Create an instance of the adapter factory, forwarding to the embedded standard conforming allocator for object creation and destruction and memory management. More... | |
template<class TY , typename... ARGS> | |
TY * | create (ARGS &&...args) |
create new element using the embedded allocator | |
template<class TY > | |
void | dispose (TY *elm) |
destroy the given element and discard the associated memory | |
template<class XALO > | |
bool constexpr | operator!= (StdFactory< XALO > const &o) const |
template<class XALO > | |
bool constexpr | operator== (StdFactory< XALO > const &o) const |
Private Types | |
using | Allo = ALO |
using | AlloT = std::allocator_traits< Allo > |
using | BaseType = typename Allo::value_type |
|
inline |
Create an instance of the adapter factory, forwarding to the embedded standard conforming allocator for object creation and destruction and memory management.
allo | (optional) instance of the C++ standard allocator used for delegation, will be default constructed if omitted. |
Definition at line 142 of file allocator-handle.hpp.