Representation of a move from one index to another in a vector. More...
Public Member Functions | |
| Move (std::size_t from, std::size_t to) | |
| Constructor with initial values. | |
| Move () | |
| Default constructor. | |
| Move (const Move &other)=default | |
| Move & | operator= (const Move &other)=default |
| Move (Move &&other)=default | |
| Move & | operator= (Move &&other)=default |
| bool | operator== (const Move &other) const |
| bool | operator!= (const Move &other) const |
| bool | operator< (const Move &other) const |
Public Attributes | |
| std::size_t | from |
| The index in the old array from which the item has been moved. | |
| std::size_t | to |
| The index in the new array to which the item has been moved. | |
Representation of a move from one index to another in a vector.
This is used to represent a move operation in the Diff class.