Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::zip_detail Namespace Reference

Functions

template<class Cmp , class Tuple , size_t... Is>
bool compare_adjacent (Cmp &cmp, const Tuple &t, std::index_sequence< Is... >)
 Compare all adjacent pairs in a tuple using the given comparator.
 

Function Documentation

◆ compare_adjacent()

template<class Cmp , class Tuple , size_t... Is>
bool Aleph::zip_detail::compare_adjacent ( Cmp &  cmp,
const Tuple t,
std::index_sequence< Is... >   
)

Compare all adjacent pairs in a tuple using the given comparator.

Parameters
cmpBinary comparator.
tTuple to compare.
Returns
true if cmp(t[i], t[i+1]) is true for all adjacent pairs.

Definition at line 963 of file ah-zip.H.

References cmp(), and Aleph::maps().

Referenced by Aleph::zip_cmp().