class RawHashSetLayout
Defined at line 802 of file ../../third_party/abseil-cpp/src/absl/container/internal/raw_hash_set.h
Helper class for computing offsets and allocation size of hash set fields.
Public Methods
void RawHashSetLayout (size_tcapacity,size_tslot_size,size_tslot_align,boolhas_infoz)
TODO(b/413062340): maybe don't allocate growth info for capacity 1 tables.
Doing so may require additional branches/complexity so it might not be
worth it.
Defined at line 807 of file ../../third_party/abseil-cpp/src/absl/container/internal/raw_hash_set.h
size_t control_offset ()
Returns precomputed offset from the start of the backing allocation of
control.
Defined at line 822 of file ../../third_party/abseil-cpp/src/absl/container/internal/raw_hash_set.h
size_t generation_offset ()
Given the capacity of a table, computes the offset (from the start of the
backing allocation) of the generation counter (if it exists).
Defined at line 826 of file ../../third_party/abseil-cpp/src/absl/container/internal/raw_hash_set.h
size_t slot_offset ()
Given the capacity of a table, computes the offset (from the start of the
backing allocation) at which the slots begin.
Defined at line 830 of file ../../third_party/abseil-cpp/src/absl/container/internal/raw_hash_set.h
size_t alloc_size ()
Given the capacity of a table, computes the total size of the backing
array.
Defined at line 834 of file ../../third_party/abseil-cpp/src/absl/container/internal/raw_hash_set.h