Ditto 4.11.0
 
Loading...
Searching...
No Matches
ditto::Diff::Move Struct Reference

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
 
Moveoperator= (const Move &other)=default
 
 Move (Move &&other)=default
 
Moveoperator= (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.
 

Detailed Description

Representation of a move from one index to another in a vector.

This is used to represent a move operation in the Diff class.