OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
AccessibleVector.h File Reference
#include <cassert>
#include <vector>
#include <algorithm>
#include <iterator>
#include <utility>
#include <type_traits>

Classes

class  Accessible< Base >
 

Typedefs

template<class T >
using AccessibleVector = Accessible< std::vector< T > >
 

Functions

template<class T >
auto calculateDelta (const T &l, const T &r)
 
template<class L , class R >
bool operator== (const Accessible< L > &l, const Accessible< R > &r)
 

Typedef Documentation

◆ AccessibleVector

template<class T >
using AccessibleVector = Accessible<std::vector<T> >

Function Documentation

◆ 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
lFirst value.
rSecond value.
Returns
Delta between the first and the second value.

◆ operator==()

template<class L , class R >
bool operator== ( const Accessible< L > &  l,
const Accessible< R > &  r 
)