Lumiera  0.pre.03
»edit your freedom«
ScopedCollection< I, siz >::ElementHolder Class Reference

#include "lib/scoped-collection.hpp"

Description

template<class I, size_t siz = sizeof(I)>
class lib::ScopedCollection< I, siz >::ElementHolder

Storage Frame to hold one Child object.

The storage will be an heap allocated array of such Wrapper objects.

Note
doesn't manage the Child

Definition at line 114 of file scoped-collection.hpp.

Public Member Functions

I & accessObj () const
 
template<class TY , typename... ARGS>
TY & create (ARGS &&...args)
 place object of type TY, forwarding ctor arguments
 
void destroy ()
 

Private Attributes

std::byte buf_ [siz]
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 
+ Inheritance diagram for ScopedCollection< I, siz >::ElementHolder:
+ Collaboration diagram for ScopedCollection< I, siz >::ElementHolder:

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