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

#include "lib/linked-elements.hpp"

Description

Policy for LinkedElements: never create or destroy any elements, only allow to add already existing nodes.

Note
any added node needs to provide a next pointer field, which is used ("intrusively") for managing the list datastructure. But besides that, the node element won't be altered or discarded in any way.

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

Public Types

typedef void * CustomAllocator
 

Public Member Functions

template<class TY , typename... ARGS>
TY & create (ARGS &&...)
 
void destroy (void *)
 this policy doesn't take ownership and thus never discards anything
 
+ Collaboration diagram for NoOwnership:

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