Lines Matching refs:array

40 void zero_fill(void* array, size_t n) {  in zero_fill()  argument
41 memset(array, 0, sizeof(T)*n); in zero_fill()
173 typename std::allocator_traits<A>::pointer array[100]; in TestAllocatorConcept() local
176 array[k] = a.allocate(k); in TestAllocatorConcept()
177 char* s = reinterpret_cast<char*>(reinterpret_cast<void*>(array[k])); in TestAllocatorConcept()
184 char* s = reinterpret_cast<char*>(reinterpret_cast<void*>(array[k])); in TestAllocatorConcept()
187 a.deallocate(array[k], k); in TestAllocatorConcept()
228 void check_allocate(pointer_type array[], std::size_t i, std::size_t t) const in check_allocate()
230 REQUIRE(array[i] == nullptr); in check_allocate()
232 array[i] = a.allocate(size); in check_allocate()
233 REQUIRE_MESSAGE(array[i] != nullptr, "allocator returned null"); in check_allocate()
234 char* s = reinterpret_cast<char*>(reinterpret_cast<void*>(array[i])); in check_allocate()
242 void check_deallocate(pointer_type array[], std::size_t i, std::size_t t) const in check_deallocate()
244 REQUIRE(array[i] != nullptr); in check_deallocate()
246 char* s = reinterpret_cast<char*>(reinterpret_cast<void*>(array[i])); in check_deallocate()
249 a.deallocate(array[i], size); in check_deallocate()
250 array[i] = nullptr; in check_deallocate()
254 pointer_type array[256]; in operator() local
257 array[k] = nullptr; in operator()
260 if(!array[i]) check_allocate(array, i, thread_id); in operator()
261 else check_deallocate(array, i, thread_id); in operator()
264 if(array[k]) in operator()
265 check_deallocate(array, k, thread_id); in operator()