[libcxx-commits] [libcxx] [libc++] Replace `__compressed_pair` with `[[no_unique_address]]` (PR #76756)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 25 09:23:51 PST 2024


================
@@ -37,49 +37,77 @@ class small_iter_allocator {
   friend bool operator!=(small_iter_allocator, small_iter_allocator) { return false; }
 };
 
+template <class T>
+class final_small_iter_allocator final {
+public:
+  using value_type      = T;
+  using pointer         = small_pointer<T>;
+  using size_type       = std::int16_t;
----------------
ldionne wrote:

```suggestion
  using size_type       = std::uint16_t;
```

https://github.com/llvm/llvm-project/pull/76756


More information about the libcxx-commits mailing list