Skip to content
Permalink
Browse files
better name - not always a pointer
  • Loading branch information
AlexanderSaydakov committed Mar 22, 2022
1 parent 0e298b4 commit 0cb504a70ee126304b7a394b6769cfbda2eedbd4
Showing 2 changed files with 2 additions and 2 deletions.
@@ -57,7 +57,7 @@ class quantile_sketch_sorted_view {
static inline const T& deref_helper(const T* t) { return *t; }
static inline T deref_helper(T t) { return t; }

struct compare_pairs_by_first_ptr {
struct compare_pairs_by_first {
bool operator()(const Entry& a, const Entry& b) const {
return Comparator()(deref_helper(a.first), deref_helper(b.first));
}
@@ -44,7 +44,7 @@ void quantile_sketch_sorted_view<T, C, A>::add(Iterator first, Iterator last, ui
std::merge(
entries_.begin(), entries_.begin() + size_before,
entries_.begin() + size_before, entries_.end(),
std::back_inserter(tmp), compare_pairs_by_first_ptr()
std::back_inserter(tmp), compare_pairs_by_first()
);
std::swap(tmp, entries_);
}

0 comments on commit 0cb504a

Please sign in to comment.