summaryrefslogtreecommitdiff
path: root/absl/container/btree_set.h
diff options
context:
space:
mode:
authorGravatar Evan Brown <ezb@google.com>2022-06-06 11:02:03 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-06-06 11:02:59 -0700
commitef034836d3bfcaff018593014f14a3ebc264cc81 (patch)
treee0408329dea54f3fa09a9b25c9b94d222b49e5ab /absl/container/btree_set.h
parent6481443560a92d0a3a55a31807de0cd712cd4f88 (diff)
In b-tree, support unassignable value types.
Avoid using value move/swap and delete those functions from slot_policy types. There was only one use of params_type::move in `erase`. PiperOrigin-RevId: 453237739 Change-Id: Ie81c6dba6c4db34e97a067d2c0defcded8044a5a
Diffstat (limited to 'absl/container/btree_set.h')
-rw-r--r--absl/container/btree_set.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/absl/container/btree_set.h b/absl/container/btree_set.h
index 32a7c506..695b09f5 100644
--- a/absl/container/btree_set.h
+++ b/absl/container/btree_set.h
@@ -766,17 +766,6 @@ struct set_slot_policy {
construct(alloc, new_slot, old_slot);
destroy(alloc, old_slot);
}
-
- template <typename Alloc>
- static void swap(Alloc * /*alloc*/, slot_type *a, slot_type *b) {
- using std::swap;
- swap(*a, *b);
- }
-
- template <typename Alloc>
- static void move(Alloc * /*alloc*/, slot_type *src, slot_type *dest) {
- *dest = std::move(*src);
- }
};
// A parameters structure for holding the type parameters for a btree_set.