class RawHashSetLayout

Defined at line 1137 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_t capacity, size_t slot_size, size_t slot_align, bool has_infoz, size_t blocked_element_count)

Defined at line 1139 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 1161 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 1165 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 1169 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 1173 of file ../../third_party/abseil-cpp/src/absl/container/internal/raw_hash_set.h