Move PrepareInsertCommon from header file to cc file.
PiperOrigin-RevId: 755434777
Change-Id: Ic84e3dc3014b19f21ce98e8dae2529236ce4bf5e
diff --git a/absl/container/internal/raw_hash_set.cc b/absl/container/internal/raw_hash_set.cc
index f19e87b..9d3b599 100644
--- a/absl/container/internal/raw_hash_set.cc
+++ b/absl/container/internal/raw_hash_set.cc
@@ -295,6 +295,11 @@
ABSL_UNREACHABLE();
}
+void PrepareInsertCommon(CommonFields& common) {
+ common.increment_size();
+ common.maybe_increment_generation_on_insert();
+}
+
size_t DropDeletesWithoutResizeAndPrepareInsert(CommonFields& common,
const PolicyFunctions& policy,
size_t new_hash) {
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index 512c946..3bc86d1 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -1827,11 +1827,6 @@
const PolicyFunctions& policy,
size_t new_capacity);
-inline void PrepareInsertCommon(CommonFields& common) {
- common.increment_size();
- common.maybe_increment_generation_on_insert();
-}
-
// ClearBackingArray clears the backing array, either modifying it in place,
// or creating a new one based on the value of "reuse".
// REQUIRES: c.capacity > 0