[libcxx-commits] [libcxx] [libc++] Move allocator assertion into allocator_traits (PR #94750)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 14 08:08:56 PDT 2024


================
@@ -372,6 +373,14 @@ template <class _Traits, class _Tp>
 using __rebind_alloc = typename _Traits::template rebind_alloc<_Tp>::other;
 #endif
 
+template <class _Alloc>
+struct __check_valid_allocator : std::true_type {
----------------
ldionne wrote:

```suggestion
struct __check_valid_allocator : true_type {
```

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


More information about the libcxx-commits mailing list