Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/linked-elements.hpp"
< allocation policies for the LinkedElements list container
Policy for LinkedElements: taking ownership and possibly creating heap allocated Nodes
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 | |
MoveOnly & | operator= (MoveOnly &&)=delete |
MoveOnly & | operator= (MoveOnly const &)=delete |