aboutsummaryrefslogtreecommitdiff
path: root/absl/container/internal/node_slot_policy.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/container/internal/node_slot_policy.h')
-rw-r--r--absl/container/internal/node_slot_policy.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/absl/container/internal/node_slot_policy.h b/absl/container/internal/node_slot_policy.h
index baba5743..3f1874d4 100644
--- a/absl/container/internal/node_slot_policy.h
+++ b/absl/container/internal/node_slot_policy.h
@@ -62,9 +62,12 @@ struct node_slot_policy {
Policy::delete_element(alloc, *slot);
}
+ // Returns true_type to indicate that transfer can use memcpy.
template <class Alloc>
- static void transfer(Alloc*, slot_type* new_slot, slot_type* old_slot) {
+ static std::true_type transfer(Alloc*, slot_type* new_slot,
+ slot_type* old_slot) {
*new_slot = *old_slot;
+ return {};
}
static size_t space_used(const slot_type* slot) {