Lumiera  0.pre.03
»edit your freedom«
OwningHeapAllocated Struct Reference

#include "lib/linked-elements.hpp"

Description

< allocation policies for the LinkedElements list container

Policy for LinkedElements: taking ownership and possibly creating heap allocated Nodes

Note
is util::MoveOnly to enforce ownership on behalf of LinkedElements

Definition at line 86 of file linked-elements.hpp.

Public Types

typedef void * CustomAllocator
 

Public Member Functions

template<class TY , typename... ARGS>
TY & create (ARGS &&...args)
 this policy creates new elements simply by heap allocation
 
template<class X >
void destroy (X *elm)
 this policy discards elements by deallocating them from heap
 

Additional Inherited Members

- Protected Member Functions inherited from MoveOnly
 MoveOnly (MoveOnly &&)=default
 
 MoveOnly (MoveOnly const &)=delete
 
MoveOnlyoperator= (MoveOnly &&)=delete
 
MoveOnlyoperator= (MoveOnly const &)=delete
 
+ Inheritance diagram for OwningHeapAllocated:
+ Collaboration diagram for OwningHeapAllocated:

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