A base-class that can be used to check whether the current instance was moved from.
More...
#include <MoveTracker.hpp>
|
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()
Move constructor sets the moved-from state on other
and resets the state on this
- Parameters
-
other | The moved-from object |
◆ operator=()
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: