diff options
author | Abseil Team <absl-team@google.com> | 2020-07-21 10:23:33 -0700 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-07-21 14:53:29 -0400 |
commit | 41a6263fd0bcc93a90ff739785f17260f8ea061e (patch) | |
tree | 2711c46f64fa0e020378c9cb6665747e0a945ccf /absl/container/internal/container_memory.h | |
parent | 3c2bed2e77a8b77ce3092e3f75140dd21879bdba (diff) | |
download | abseil-41a6263fd0bcc93a90ff739785f17260f8ea061e.tar.gz abseil-41a6263fd0bcc93a90ff739785f17260f8ea061e.tar.bz2 abseil-41a6263fd0bcc93a90ff739785f17260f8ea061e.zip |
Export of internal Abseil changes
--
dcd4d95f6201dc5781a3a374be8eb10c812fd98a by Derek Mauro <dmauro@google.com>:
Add -Wundef to GCC warnings
PiperOrigin-RevId: 322388155
--
b030746368262aff6bc487f5525bcd9b32d18ebb by Abseil Team <absl-team@google.com>:
Google internal clean-up.
PiperOrigin-RevId: 322381901
--
18e4cfcd50730c493cfc0cf1e127e57c186ce90b by Evan Brown <ezb@google.com>:
Rollback b-tree erase simplification change.
PiperOrigin-RevId: 322368252
--
d15431c52fa7ccb25ffbd967fd11f8f58246d48a by Abseil Team <absl-team@google.com>:
Update MOCK_METHOD (new format) in memory/memory_test.cc
PiperOrigin-RevId: 322208282
GitOrigin-RevId: dcd4d95f6201dc5781a3a374be8eb10c812fd98a
Change-Id: I3a900b4993f86bdd1c9597819c7a0e6e1759eda3
Diffstat (limited to 'absl/container/internal/container_memory.h')
-rw-r--r-- | absl/container/internal/container_memory.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/absl/container/internal/container_memory.h b/absl/container/internal/container_memory.h index 92a61cc0..536ea398 100644 --- a/absl/container/internal/container_memory.h +++ b/absl/container/internal/container_memory.h @@ -429,6 +429,13 @@ struct map_slot_policy { std::move(src->value)); } } + + template <class Allocator> + static void move(Allocator* alloc, slot_type* first, slot_type* last, + slot_type* result) { + for (slot_type *src = first, *dest = result; src != last; ++src, ++dest) + move(alloc, src, dest); + } }; } // namespace container_internal |