#include <cassert>
#include <vector>
#include <algorithm>
#include <iterator>
#include <utility>
#include <type_traits>
◆ AccessibleVector
◆ calculateDelta()
template<class T >
auto calculateDelta |
( |
const T & |
l, |
|
|
const T & |
r |
|
) |
| |
Extension point for delta
and pairwiseDelta
methods of the Accessible
classes. Effectively computes a delta between l
and 'r', i.e. r - l
.
This function is overloaded for Accessible
classes, and it can also be overloaded for std::tuple
/ std::pair
if there comes a need to compute per-element deltas for them.
- Parameters
-
l | First value. |
r | Second value. |
- Returns
- Delta between the first and the second value.
◆ operator==()
template<class L , class R >