| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | controlled_allocators.h | 31 class CountingAllocator; variable 224 class CountingAllocator 233 CountingAllocator() = delete; 236 CountingAllocator(CountingAllocator const& other) : P(other.P) { in CountingAllocator() function 240 CountingAllocator(CountingAllocator&& other) : P(other.P) { in CountingAllocator() function 245 CountingAllocator(CountingAllocator<U, ID> const& other) TEST_NOEXCEPT : P(other.P) { in CountingAllocator() function 250 CountingAllocator(CountingAllocator<U, ID>&& other) TEST_NOEXCEPT : P(other.P) { in CountingAllocator() function 302 CountingAllocator(CountingAllocator const& other) : P(other.P) { in CountingAllocator() function 306 CountingAllocator(CountingAllocator&& other) : P(other.P) { in CountingAllocator() function 311 CountingAllocator(CountingAllocator<U, ID> const& other) TEST_NOEXCEPT : P(other.P) { in CountingAllocator() function [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/ |
| H A D | construct_type.pass.cpp | 35 using VoidAlloc2 = CountingAllocator<void, 2>; in test_bullet_one() 41 using Outer = CountingAllocator<T, 1>; in test_bullet_one() 42 using Inner = CountingAllocator<T, 2>; in test_bullet_one() 68 using VoidAlloc2 = CountingAllocator<void, 2>; in test_bullet_two() 74 using Outer = CountingAllocator<T, 1>; in test_bullet_two() 75 using Inner = CountingAllocator<T, 2>; in test_bullet_two() 101 using VoidAlloc2 = CountingAllocator<void, 2>; in test_bullet_three() 107 using Outer = CountingAllocator<T, 1>; in test_bullet_three() 108 using Inner = CountingAllocator<T, 2>; in test_bullet_three()
|
| H A D | construct_pair.pass.cpp | 33 using VoidAlloc = CountingAllocator<void>; in test_no_inner_alloc() 39 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 41 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 62 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 64 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 83 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc() 91 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 92 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc() 118 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 119 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
|
| H A D | construct_pair_rvalue.pass.cpp | 33 using VoidAlloc = CountingAllocator<void>; in test_no_inner_alloc() 42 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 44 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 69 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 71 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 91 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc() 102 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 103 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc() 133 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 134 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
|
| H A D | construct_pair_values.pass.cpp | 33 using VoidAlloc = CountingAllocator<void>; in test_no_inner_alloc() 41 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 43 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 66 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 68 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 87 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc() 97 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 98 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc() 126 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 127 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
|
| H A D | construct_pair_piecewise.pass.cpp | 34 using VoidAlloc = CountingAllocator<void>; in test_no_inner_alloc() 42 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 44 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 69 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 71 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 92 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc() 102 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 103 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc() 133 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 134 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
|
| H A D | construct_pair_const_lvalue_pair.pass.cpp | 33 using VoidAlloc = CountingAllocator<void>; in test_no_inner_alloc() 42 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 44 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 69 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc() 71 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc() 91 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc() 102 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 103 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc() 133 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc() 134 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
|
| /llvm-project-15.0.7/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/ |
| H A D | do_is_equal.pass.cpp | 34 typedef CountingAllocator<char> Alloc1; in main() 35 typedef CountingAllocator<int> RAlloc1; in main()
|
| H A D | do_allocate_and_deallocate.pass.cpp | 113 check_allocate_deallocate<CountingAllocator<char>>(); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.ctor/ |
| H A D | default.pass.cpp | 34 typedef CountingAllocator<char> AllocT; // Not default constructible in main()
|
| H A D | alloc_move.pass.cpp | 31 typedef CountingAllocator<char> AllocT; in main()
|
| H A D | alloc_copy.pass.cpp | 31 typedef CountingAllocator<char> AllocT; in main()
|