Lumiera  0.pre.03
»edit your freedom«
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
template<class TY , typename... ARGS>
TY & create (ARGS &&...)
 
void dispose (void *)
 this policy doesn't take ownership and thus never discards anything
 

Additional Inherited Members

- Public Types inherited from NoOwnership
typedef void * CustomAllocator
 
+ Inheritance diagram for PolicyInvokeDtor:
+ Collaboration diagram for PolicyInvokeDtor:

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