Make moved-from swisstables behave the same as empty tables. Note that we may change this in the future.
PiperOrigin-RevId: 675576092
Change-Id: Ibbe1d9d2b644ce6f6182a2d197635d6a0c5327f6
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index 1f37421..b09f22d 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -1353,10 +1353,7 @@
}
template <bool kSooEnabled>
static CommonFields CreateMovedFrom() {
- // For SOO, we still need to initialize the size to 0 to distinguish between
- // full/empty SOO cases.
- return kSooEnabled ? CommonFields{soo_tag_t{}}
- : CommonFields{moved_from_non_soo_tag_t{}};
+ return CreateDefault<kSooEnabled>();
}
// The inline data for SOO is written on top of control_/slots_.