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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user