Template Function ADS::intersectTwoLevel

Function Documentation

template<class T, class C = std::less<>>
std::vector<T> ADS::intersectTwoLevel(const std::vector<T> &A, const std::vector<T> &B, std::size_t L, C less = C())

the items common to A and B, by the first items of the blocks of L items of A

Pre:

L >= 1, A and B strictly increasing (an audit)

Post:

the result of intersectMerge() (an audit)