TransferID::subtracted()

This commit is contained in:
Pavel Kirienko
2015-07-20 12:32:13 +03:00
parent 29c295bf11
commit c36fdb2156
3 changed files with 37 additions and 1 deletions
@@ -104,6 +104,11 @@ public:
* Amount of increment() calls to reach rhs value.
*/
int computeForwardDistance(TransferID rhs) const;
/**
* Difference between two TransferID values with proper wraparound handling.
*/
int subtracted(TransferID rhs) const;
};