Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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 110 of file linked-elements.hpp.

Public Types

typedef void * CustomAllocator
 

Public Member Functions

void dispose (void *)
 this policy doesn't take ownership and thus never discards anything
 
template<class TY , typename... ARGS>
TY & create (ARGS &&...)
 

Member Typedef Documentation

◆ CustomAllocator

typedef void* CustomAllocator

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

Member Function Documentation

◆ dispose()

void dispose ( void *  )
inline

this policy doesn't take ownership and thus never discards anything

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

◆ create()

template<class TY , typename... ARGS>
TY & create ( ARGS &&  ...)
inline

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

+ Inheritance diagram for NoOwnership:
+ Collaboration diagram for NoOwnership:

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