diff --git a/examples/btree.cc b/examples/btree.cc index 44dcc5c..4ff8e23 100644 --- a/examples/btree.cc +++ b/examples/btree.cc @@ -15,6 +15,9 @@ int main() map["lucy"] = 18; map["Andre"] = 20; + auto it = map.find("Joe"); + map.erase(it); + map.insert(std::make_pair("Alex", 16)); map.emplace("Emily", 18); // emplace uses pair template constructor diff --git a/tests/btree_test.h b/tests/btree_test.h index 4472916..7f7438f 100644 --- a/tests/btree_test.h +++ b/tests/btree_test.h @@ -60,11 +60,11 @@ namespace phmap { namespace test_internal { -// A type that counts number of occurrences of the type, the live occurrences of -// the type, as well as the number of copies, moves, swaps, and comparisons that -// have occurred on the type. This is used as a base class for the copyable, -// copyable+movable, and movable types below that are used in actual tests. Use -// InstanceTracker in tests to track the number of instances. + // A type that counts number of occurrences of the type, the live occurrences of + // the type, as well as the number of copies, moves, swaps, and comparisons that + // have occurred on the type. This is used as a base class for the copyable, + // copyable+movable, and movable types below that are used in actual tests. Use + // InstanceTracker in tests to track the number of instances. class BaseCountedInstance { public: explicit BaseCountedInstance(int x) : value_(x) {