Skip to content

Commit

Permalink
Make moved-from swisstables behave the same as empty tables. Note tha…
Browse files Browse the repository at this point in the history
…t we may change this in the future.

PiperOrigin-RevId: 675576092
Change-Id: Ibbe1d9d2b644ce6f6182a2d197635d6a0c5327f6
  • Loading branch information
ezbr authored and copybara-github committed Sep 17, 2024
1 parent cbf5908 commit 857fa4f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions absl/container/internal/raw_hash_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -1353,10 +1353,7 @@ class CommonFields : public CommonFieldsGenerationInfo {
}
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_.
Expand Down

0 comments on commit 857fa4f

Please sign in to comment.