![]() |
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 <inviwo/core/util/moveonlyvalue.h>
Public Member Functions | |
| MoveOnlyValue (const MoveOnlyValue &)=delete | |
| MoveOnlyValue (const T &v) | |
| MoveOnlyValue (MoveOnlyValue &&rhs) noexcept | |
| MoveOnlyValue (T &&v) | |
| 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.