Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::MoveOnlyValue< T > Class Template Reference

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
MoveOnlyValueoperator= (const MoveOnlyValue &)=delete
MoveOnlyValueoperator= (MoveOnlyValue &&that) noexcept

Public Attributes

std::optional< T > value

Detailed Description

template<typename T>
class inviwo::MoveOnlyValue< T >

Hold a "unique" value, the value will not be copied and when moving the moved from optional will be left empty.


The documentation for this class was generated from the following file:
  • moveonlyvalue.h