CatapultServer
v0.5.0.1 (Elephant)
|
A move-only value wrapper. More...
Public Member Functions | |
constexpr | ImmutableValue (TValue value) |
Creates an immutable value around value. More... | |
constexpr | operator const TValue () const |
Casts this immutable value to a mutable value. More... | |
Public Member Functions inherited from catapult::utils::MoveOnly | |
constexpr | MoveOnly ()=default |
Default constructor. More... | |
~MoveOnly ()=default | |
Default destructor. More... | |
MoveOnly (const NonCopyable &)=delete | |
Disabled copy constructor. More... | |
MoveOnly (MoveOnly &&)=default | |
Default move constructor. More... | |
MoveOnly & | operator= (const MoveOnly &)=delete |
Disabled assignment operator. More... | |
MoveOnly & | operator= (MoveOnly &&)=default |
Default move assignment operator. More... | |
Private Attributes | |
TValue | m_value |
A move-only value wrapper.
|
inlineexplicitconstexpr |
Creates an immutable value around value.
|
inlineconstexpr |
Casts this immutable value to a mutable value.
|
private |