MCPcopy Create free account
hub / github.com/ceph/ceph / remove_value

Method remove_value

src/include/cpp-btree/btree.h:1471–1481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1469
1470template <typename P>
1471inline void btree_node<P>::remove_value(const int i, allocator_type *alloc) {
1472 if (!leaf() && count() > i + 1) {
1473 assert(child(i + 1)->count() == 0);
1474 for (size_type j = i + 1; j < count(); ++j) {
1475 set_child(j, child(j + 1));
1476 }
1477 clear_child(count());
1478 }
1479
1480 remove_values_ignore_children(i, /*to_erase=*/1, alloc);
1481}
1482
1483template <typename P>
1484inline void btree_node<P>::remove_values_ignore_children(

Callers 2

mergeMethod · 0.80
eraseMethod · 0.80

Calls 3

assertFunction · 0.85
childClass · 0.50
countMethod · 0.45

Tested by

no test coverage detected