Lumiera  0.pre.03
»edit your freedom«
OwningAllocated< ALO > Struct Template Reference

#include "lib/linked-elements.hpp"

Description

template<class ALO>
struct lib::linked_elements::OwningAllocated< ALO >

< allocation policies for the LinkedElements list container

Policy for LinkedElements: taking ownership and possibly creating new Nodes through a custom allocator.

Template Parameters
ALOa C++ standard conformant allocator
Note
is util::MoveOnly to enforce ownership on behalf of LinkedElements

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

Public Types

using CustomAllocator = ALO
 

Additional Inherited Members

- Public Member Functions inherited from StdFactory< ALO >
 StdFactory (Allo allo=Allo{})
 Create an instance of the adapter factory, forwarding to the embedded standard conforming allocator for object creation and destruction and memory management. More...
 
template<class TY , typename... ARGS>
TY * create (ARGS &&...args)
 create new element using the embedded allocator
 
template<class TY >
void dispose (TY *elm)
 destroy the given element and discard the associated memory
 
template<class XALO >
bool constexpr operator!= (StdFactory< XALO > const &o) const
 
template<class XALO >
bool constexpr operator== (StdFactory< XALO > const &o) const
 
- Protected Member Functions inherited from MoveOnly
 MoveOnly (MoveOnly &&)=default
 
 MoveOnly (MoveOnly const &)=delete
 
MoveOnlyoperator= (MoveOnly &&)=delete
 
MoveOnlyoperator= (MoveOnly const &)=delete
 
+ Inheritance diagram for OwningAllocated< ALO >:
+ Collaboration diagram for OwningAllocated< ALO >:

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