Files
abseil-cpp/absl/container
Vitaly Goldshteyn d4d92a7009 Introduce HashtableCapacity wrapper for capacity_ and rename HashtableSize to HashtableInlineData and move capacity into it.
This change wraps the capacity_ member of CommonFields in a new HashtableCapacity class. This class encapsulates the logic for handling valid capacities and debug-only sentinel values like kMovedFrom and kDestroyed, improving type safety and clarity. Capacity-related helper functions are also reordered within the file to be defined before CommonFields.

The `capacity_` member is now part of the `HashtableInlineData` class, which was previously named `HashtableSize`. This change groups stack-allocated data members together.

This is necessary to make an experiment of storing capacity as 1 byte.
Having Capacity in the same struct would allow to use `data_` as bit-field.

PiperOrigin-RevId: 903283983
Change-Id: Ia5c05f6a476f5b32967737fcb626565948c1505d
2026-04-21 09:52:21 -07:00
..
2020-03-09 16:10:21 -04:00
2026-01-01 05:09:05 -08:00