![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/uninitialised-storage.hpp"
Block of raw uninitialised storage with array like access.
| T | the nominal type assumed to sit in each »slot« |
| cnt | number of »slots« in the array |
Definition at line 79 of file uninitialised-storage.hpp.
Static Public Member Functions | |
| static constexpr size_t | size () |
Public Member Functions | |
| _Arr & | array () |
| _Arr const & | array () const |
| operator _Arr & () | |
| operator _Arr const & () const | |
| T & | operator[] (size_t idx) |
| T const & | operator[] (size_t idx) const |
| template<typename... Args> | |
| T & | createAt (size_t idx, Args &&...args) |
| void | destroyAt (size_t idx) |
Private Types | |
| using | _Arr = std::array< T, cnt > |
Private Attributes | |
| std::byte | buffer_ [sizeof(_Arr)] |
|
private |
Definition at line 81 of file uninitialised-storage.hpp.
|
inline |
Definition at line 86 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::buffer_.
Referenced by UninitialisedStorage< T, cnt >::operator _Arr &(), UninitialisedStorage< T, cnt >::operator _Arr const &(), UninitialisedStorage< T, cnt >::operator[](), and UninitialisedStorage< T, cnt >::operator[]().
Here is the caller graph for this function:
|
inline |
Definition at line 92 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::buffer_.
|
inline |
Definition at line 98 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::array().
Here is the call graph for this function:
|
inline |
Definition at line 99 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::array().
Here is the call graph for this function:
|
inline |
Definition at line 101 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::array().
Referenced by UninitialisedStorage< T, cnt >::createAt(), and UninitialisedStorage< T, cnt >::destroyAt().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 102 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::array().
Here is the call graph for this function:
|
inline |
Definition at line 107 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::operator[]().
Here is the call graph for this function:
|
inline |
Definition at line 113 of file uninitialised-storage.hpp.
References UninitialisedStorage< T, cnt >::operator[]().
Here is the call graph for this function:
|
inlinestaticconstexpr |
Definition at line 118 of file uninitialised-storage.hpp.
|
private |
Definition at line 82 of file uninitialised-storage.hpp.
Referenced by UninitialisedStorage< T, cnt >::array(), and UninitialisedStorage< T, cnt >::array().
Inheritance diagram for UninitialisedStorage< T, cnt >:
Collaboration diagram for UninitialisedStorage< T, cnt >: