summaryrefslogtreecommitdiff
path: root/absl/container/internal
diff options
context:
space:
mode:
authorGravatar Evan Brown <ezb@google.com>2023-09-15 11:22:53 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-09-15 11:23:57 -0700
commitf44e2cac7b8b20e1a6f5457714003e6d7022e889 (patch)
tree284540883ac6f7d63540a1a3d564c7051d2c30a1 /absl/container/internal
parent49be2e68de5b063bce5d0757078c62906a2674ea (diff)
Fix a bug in which we used propagate_on_container_copy_assignment in btree move assignment.
PiperOrigin-RevId: 565730754 Change-Id: Id828847d32c812736669803c179351433dda4aa6
Diffstat (limited to 'absl/container/internal')
-rw-r--r--absl/container/internal/btree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/container/internal/btree.h b/absl/container/internal/btree.h
index 419a5356..ef630aea 100644
--- a/absl/container/internal/btree.h
+++ b/absl/container/internal/btree.h
@@ -2423,7 +2423,7 @@ auto btree<P>::operator=(btree &&other) noexcept -> btree & {
using std::swap;
if (absl::allocator_traits<
- allocator_type>::propagate_on_container_copy_assignment::value) {
+ allocator_type>::propagate_on_container_move_assignment::value) {
swap(root_, other.root_);
// Note: `rightmost_` also contains the allocator and the key comparator.
swap(rightmost_, other.rightmost_);