Inviwo 0.9.12-pre
Inviwo documentation
|
Hold a "unique" value, the value will not be copied and when moving the moved from optional will be left empty. More...
#include <moveonlyvalue.h>
Public Member Functions | |
MoveOnlyValue (const T &v) | |
MoveOnlyValue (T &&v) | |
MoveOnlyValue (const MoveOnlyValue &)=delete | |
MoveOnlyValue (MoveOnlyValue &&rhs) noexcept | |
MoveOnlyValue & | operator= (const MoveOnlyValue &)=delete |
MoveOnlyValue & | operator= (MoveOnlyValue &&that) noexcept |
Public Attributes | |
std::optional< T > | value |
Hold a "unique" value, the value will not be copied and when moving the moved from optional will be left empty.