106 template <
typename T,
typename Less = std::less <T> >
117 _less(less), data_(data)
132 return _less(data_[i], data_[j]);
137 const std::vector <T>& data_;
Definition: algorithm.hpp:14
Definition: comparators.hpp:60
void operator()(int value)
Definition: comparators.hpp:77
is_all_ones()
Definition: comparators.hpp:65
bool operator()()
Definition: comparators.hpp:89
Definition: comparators.hpp:13
bool operator()()
Definition: comparators.hpp:42
is_non_zero()
Definition: comparators.hpp:18
void operator()(int value)
Definition: comparators.hpp:30
Definition: comparators.hpp:108
bool operator()(size_t i, size_t j)
Definition: comparators.hpp:130
vector_less(const std::vector< T > &data, Less less=Less())
Definition: comparators.hpp:116