A base-class that can be used to check whether the current instance was moved from.
More...
#include <MoveTracker.hpp>
|
| | MoveTracker (MoveTracker &&other) |
| | Move constructor sets the moved-from state on other and resets the state on this.
|
| MoveTracker & | operator= (MoveTracker &&other) |
| | Move operator sets the moved-from state on other and resets the state on this.
|
|
| MoveTracker (MoveTracker const &)=default |
|
MoveTracker & | operator= (MoveTracker const &)=default |
|
| bool | wasMoved () const noexcept |
| | The function to be used by clients in order to check whether the instance was moved from.
|
A base-class that can be used to check whether the current instance was moved from.
◆ MoveTracker()
| util::MoveTracker::MoveTracker |
( |
MoveTracker && | other | ) |
|
|
inline |
Move constructor sets the moved-from state on other and resets the state on this.
- Parameters
-
| other | The moved-from object |
◆ operator=()
| MoveTracker & util::MoveTracker::operator= |
( |
MoveTracker && | other | ) |
|
|
inline |
Move operator sets the moved-from state on other and resets the state on this.
- Parameters
-
| other | The moved-from object |
- Returns
- Reference to self
◆ wasMoved()
| bool util::MoveTracker::wasMoved |
( |
| ) |
const |
|
inlinenodiscardprotectednoexcept |
The function to be used by clients in order to check whether the instance was moved from.
- Returns
- true if moved from; false otherwise
The documentation for this class was generated from the following file: