Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
PolicyInvokeDtor Struct Reference

Description

Special allocator-policy for lib::LinkedElements.

  • does not allow to allocate new elements
  • can hook up elements allocated elsewhere
  • ensure the destructor of all elements is invoked

Definition at line 55 of file allocation-cluster.cpp.

Public Member Functions

template<class X >
void dispose (X *elm)
 while this policy doesn't take ownership, it ensures the destructor is invoked
 
- Public Member Functions inherited from NoOwnership
void dispose (void *)
 this policy doesn't take ownership and thus never discards anything
 
template<class TY , typename... ARGS>
TY & create (ARGS &&...)
 

Additional Inherited Members

- Public Types inherited from NoOwnership
typedef void * CustomAllocator
 

Member Function Documentation

◆ dispose()

template<class X >
void dispose ( X *  elm)
inline

while this policy doesn't take ownership, it ensures the destructor is invoked

Definition at line 64 of file allocation-cluster.cpp.

+ Inheritance diagram for PolicyInvokeDtor:
+ Collaboration diagram for PolicyInvokeDtor:

The documentation for this struct was generated from the following file: