BLI: use no_unique_address in BitVector

This allows the vector to be smaller when it has no inline buffer (24 ->32 byte).
This commit is contained in:
Jacques Lucke 2022-11-29 16:34:57 +01:00
parent 57613630c7
commit 7b08298927
1 changed files with 2 additions and 2 deletions

View File

@ -200,10 +200,10 @@ class BitVector {
int64_t capacity_in_bits_;
/** Used for allocations when the inline buffer is too small. */
Allocator allocator_;
BLI_NO_UNIQUE_ADDRESS Allocator allocator_;
/** Contains the bits as long as the vector is small enough. */
TypedBuffer<uint8_t, BytesInInlineBuffer> inline_buffer_;
BLI_NO_UNIQUE_ADDRESS TypedBuffer<uint8_t, BytesInInlineBuffer> inline_buffer_;
public:
BitVector(Allocator allocator = {}) noexcept : allocator_(allocator)