[libcxx-commits] [libcxx] [libcxx][string] Test: default constructed allocators can be unequal (PR #195839)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 14 03:09:01 PDT 2026
================
@@ -515,4 +515,40 @@ struct SocccAllocator {
using propagate_on_container_swap = std::false_type;
};
+// Track how many times the allocator was default-constructed
+//
+
+template <class T>
+class ControlledDefaultConstructorAllocator : public std::allocator<T> {
----------------
philnik777 wrote:
We're explicit in what we care about. `std::allocator` changes sometimes and we don't want to accidentally change what our test allocators are. It also removes the need for `rebind`.
https://github.com/llvm/llvm-project/pull/195839
More information about the libcxx-commits
mailing list