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