Lines Matching refs:A

44 template<typename A>
106 template<typename T, typename A>
107 void TestBrokenAllocator(A& a) { in TestBrokenAllocator()
111 typename A::pointer px = &x; in TestBrokenAllocator()
112 typename A::const_pointer pcx = &cx; in TestBrokenAllocator()
114 typename A::reference rx = x; in TestBrokenAllocator()
117 typename A::const_reference rcx = cx; in TestBrokenAllocator()
120 typename A::value_type v = x; in TestBrokenAllocator()
122 typename A::size_type size; in TestBrokenAllocator()
127 typename A::difference_type difference; in TestBrokenAllocator()
139 AssertSameType(a.max_size(), typename A::size_type(0)); in TestBrokenAllocator()
142 …REQUIRE_MESSAGE((a.max_size() * typename A::size_type(sizeof(T)) >= a.max_size()), "max_size large… in TestBrokenAllocator()
146 typename A::pointer p = a.allocate(1); in TestBrokenAllocator()
156 …typedef typename A::template rebind<std::pair<typename A::value_type, typename A::value_type> >::o… in TestBrokenAllocator()
170 template<typename T, typename A>
171 void TestAllocatorConcept(A& a) { in TestAllocatorConcept()
173 typename std::allocator_traits<A>::pointer array[100]; in TestAllocatorConcept()
192 template<typename T, typename A>
193 void TestAllocatorExceptions(A& a) { in TestAllocatorExceptions()
197 typename std::allocator_traits<A>::pointer p1 = nullptr; in TestAllocatorExceptions()
220 template<typename A>
222 using pointer_type = typename std::allocator_traits<A>::pointer;
223 using value_type = typename std::allocator_traits<A>::value_type;
226 A &a;
227 Body(A &a_) : a(a_) {} in Body()
236 … if(is_zero_filling<typename std::allocator_traits<A>::template rebind_alloc<void>>::value) in check_allocate()
269 template<typename A>
270 void TestThreadSafety(A &a) { in TestThreadSafety()
271 utils::NativeParallelFor(4, Body<A>(a)); in TestThreadSafety()