From 7a39f4d31c9e50d090dac3b62cb9778b5d2868de Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 1 Jan 2020 12:56:26 -0500 Subject: [PATCH] minor changes in examples --- examples/btree.cc | 3 +++ tests/btree_test.h | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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) {