Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/replaceable-item.hpp"
Adapter container to take snapshots from non-assignable values.
Implemented by placing the subject into an inline buffer.
Definition at line 88 of file replaceable-item.hpp.
Public Member Functions | |
template<typename Z > | |
ReplaceableItem (Z &&otherValue) | |
ReplaceableItem & | clear () noexcept |
X & | get () |
X const & | get () const |
operator X & () | |
operator X const & () const | |
template<typename Z > | |
ReplaceableItem & | operator= (Z &&otherValue) |
Private Member Functions | |
X & | access () |
void | destroy () |
template<typename Z > | |
void | emplace (Z &&otherValue) |
template<typename Z > | |
void | reAssign (Z &&otherValue) |
Private Attributes | |
std::byte | content_ [sizeof(X)] |