diff options
author | Abseil Team <absl-team@google.com> | 2023-11-20 14:57:43 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-11-20 14:58:49 -0800 |
commit | db5c79932e16e97e8b2f9ecd0e74f99f0e74e0d7 (patch) | |
tree | f97c66bd57931a32ba1cb4c7a222f7003d9f359d /absl/container/flat_hash_map.h | |
parent | f393335cb7410fc3a88f41dc5dd878c020213e0b (diff) | |
download | abseil-db5c79932e16e97e8b2f9ecd0e74f99f0e74e0d7.tar.gz abseil-db5c79932e16e97e8b2f9ecd0e74f99f0e74e0d7.tar.bz2 abseil-db5c79932e16e97e8b2f9ecd0e74f99f0e74e0d7.zip |
Make `FlatHashMapPolicy` return `std::true_type` for relocatable objects.
This reduces produced binary size and can trigger even more optimizations in the future.
PiperOrigin-RevId: 584136517
Change-Id: I3854833799f88f28b755ec53132925f0c3d468ab
Diffstat (limited to 'absl/container/flat_hash_map.h')
-rw-r--r-- | absl/container/flat_hash_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/container/flat_hash_map.h b/absl/container/flat_hash_map.h index 5304477d..acd013b0 100644 --- a/absl/container/flat_hash_map.h +++ b/absl/container/flat_hash_map.h @@ -579,9 +579,9 @@ struct FlatHashMapPolicy { } template <class Allocator> - static void transfer(Allocator* alloc, slot_type* new_slot, + static auto transfer(Allocator* alloc, slot_type* new_slot, slot_type* old_slot) { - slot_policy::transfer(alloc, new_slot, old_slot); + return slot_policy::transfer(alloc, new_slot, old_slot); } template <class F, class... Args> |