class RawHashSetLayout

Defined at line 1061 of file ../../third_party/abseil-cpp/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_align, bool has_infoz)

Defined at line 1063 of file ../../third_party/abseil-cpp/absl/container/internal/raw_hash_set.h

size_t capacity ()

Returns the capacity of a table.

Defined at line 1074 of file ../../third_party/abseil-cpp/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 1078 of file ../../third_party/abseil-cpp/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 1082 of file ../../third_party/abseil-cpp/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 1086 of file ../../third_party/abseil-cpp/absl/container/internal/raw_hash_set.h

size_t alloc_size (size_t slot_size)

Given the capacity of a table, computes the total size of the backing

array.

Defined at line 1090 of file ../../third_party/abseil-cpp/absl/container/internal/raw_hash_set.h