30 bool wasMoved_ =
false;
54 *
this = std::move(other);
66 other.wasMoved_ =
true;
A base-class that can be used to check whether the current instance was moved from.
Definition MoveTracker.hpp:29
MoveTracker(MoveTracker &&other)
Move constructor sets the moved-from state on other and resets the state on this
Definition MoveTracker.hpp:52
MoveTracker & operator=(MoveTracker &&other)
Move operator sets the moved-from state on other and resets the state on this
Definition MoveTracker.hpp:63
bool wasMoved() const noexcept
The function to be used by clients in order to check whether the instance was moved from.
Definition MoveTracker.hpp:38
This namespace contains various utilities.
Definition AccountUtils.hpp:30