Home
last modified time | relevance | path

Searched refs:CountingAllocator (Results 1 – 12 of 12) sorted by relevance

/external/libcxx/test/support/
Dcontrolled_allocators.hpp32 class CountingAllocator;
220 class CountingAllocator class
227 struct rebind { using other = CountingAllocator<U, ID>; };
229 CountingAllocator() = delete;
230 explicit CountingAllocator(AllocController& PP) : P(&PP) {} in CountingAllocator() function in CountingAllocator
232 CountingAllocator(CountingAllocator const& other) : P(other.P) { in CountingAllocator() function in CountingAllocator
236 CountingAllocator(CountingAllocator&& other) : P(other.P) { in CountingAllocator() function in CountingAllocator
241 CountingAllocator(CountingAllocator<U, ID> const& other) TEST_NOEXCEPT : P(other.P) { in CountingAllocator() function in CountingAllocator
246 CountingAllocator(CountingAllocator<U, ID>&& other) TEST_NOEXCEPT : P(other.P) { in CountingAllocator() function in CountingAllocator
279 template <class Tp, size_t XID> friend class CountingAllocator;
[all …]
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
Dconstruct_type.pass.cpp34 using VoidAlloc2 = CountingAllocator<void, 2>; in test_bullet_one()
40 using Outer = CountingAllocator<T, 1>; in test_bullet_one()
41 using Inner = CountingAllocator<T, 2>; in test_bullet_one()
67 using VoidAlloc2 = CountingAllocator<void, 2>; in test_bullet_two()
73 using Outer = CountingAllocator<T, 1>; in test_bullet_two()
74 using Inner = CountingAllocator<T, 2>; in test_bullet_two()
100 using VoidAlloc2 = CountingAllocator<void, 2>; in test_bullet_three()
106 using Outer = CountingAllocator<T, 1>; in test_bullet_three()
107 using Inner = CountingAllocator<T, 2>; in test_bullet_three()
Dconstruct_pair.pass.cpp32 using VoidAlloc = CountingAllocator<void>; in test_no_inner_alloc()
38 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
40 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc()
61 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
63 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc()
82 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc()
90 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
91 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
117 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
118 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
Dconstruct_pair_rvalue.pass.cpp32 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()
68 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
70 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc()
90 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc()
101 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
102 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
132 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
133 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
Dconstruct_pair_piecewise.pass.cpp33 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()
68 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
70 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()
101 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
102 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
132 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
133 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
Dconstruct_pair_const_lvalue_pair.pass.cpp32 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()
68 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
70 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc()
90 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc()
101 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
102 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
132 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
133 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
Dconstruct_pair_values.pass.cpp32 using VoidAlloc = CountingAllocator<void>; in test_no_inner_alloc()
40 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
42 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc()
65 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
67 static_assert(std::uses_allocator<T, CountingAllocator<T> >::value, ""); in test_no_inner_alloc()
86 using VoidAlloc2 = CountingAllocator<void, 2>; in test_with_inner_alloc()
96 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
97 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
125 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
126 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
/external/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/
Ddo_is_equal.pass.cpp30 typedef CountingAllocator<char> Alloc1; in main()
31 typedef CountingAllocator<int> RAlloc1; in main()
Ddo_allocate_and_deallocate.pass.cpp112 check_allocate_deallocate<CountingAllocator<char>>(); in main()
/external/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.ctor/
Ddefault.pass.cpp30 typedef CountingAllocator<char> AllocT; // Not default constructible in main()
Dalloc_move.pass.cpp27 typedef CountingAllocator<char> AllocT; in main()
Dalloc_copy.pass.cpp27 typedef CountingAllocator<char> AllocT; in main()