@@ -107,7 +107,6 @@ class bpt_node_data : public bpt_node_base<KeyT, NInnerT, NLeafT> {
107107 [[nodiscard]] auto lower_bound (KeyT key) noexcept {
108108 // If this doesn´t compile, check #include <algorithm> !!!
109109 return std::lower_bound (data_.begin (), data_.end (), key, [](EntryT& left, const KeyT key) {
110- // return left.first < key;
111110 return Compare{}(left.first , key);
112111 });
113112 }
@@ -397,7 +396,6 @@ class bpt_node_inner : public bpt_node_data<
397396 for (auto & e : this ->data_ ) {
398397 assert (n == 0 || !Compare{}(e.first , prev_key));
399398 e.second ->_check (count, this , prev_leaf, known_min, e.first );
400- // assert(this->parent_ == nullptr || e.first <= known_max);
401399 assert (this ->parent_ == nullptr || !Compare{}(known_max, e.first ));
402400 prev_key = e.first ;
403401 ++n;
@@ -435,12 +433,10 @@ class bpt_node_inner : public bpt_node_data<
435433
436434 // update child1
437435 auto it = dest->lower_bound_node (key1_old, child1);
438- // assert(key1_old >= key1_new && it != dest->data_.end());
439436 assert (!Compare{}(key1_old, key1_new) && it != dest->data_ .end ());
440437 it->first = key1_new;
441438
442439 if (dest == this && this ->next_node_ != nullptr ) {
443- // assert(this->next_node_->data_.front().first >= key1_new);
444440 assert (!Compare{}(this ->next_node_ ->data_ .front ().first , key1_new));
445441 }
446442 ++it;
0 commit comments