Lines Matching refs:allocate
37 // The allocation primitives are intended to allocate individual objects,
159 static void* allocate(size_t __n)
231 static _Tp* allocate(size_t __n)
232 { return 0 == __n ? 0 : (_Tp*) _Alloc::allocate(__n * sizeof (_Tp)); }
233 static _Tp* allocate(void)
234 { return (_Tp*) _Alloc::allocate(sizeof (_Tp)); }
257 static void* allocate(size_t __n)
259 char* __result = (char*)_Alloc::allocate(__n + _S_extra);
301 // 2. In all other cases, we allocate an object of size exactly
308 // may use this allocator. It is safe to allocate an object from
357 // if it is inconvenient to allocate the requested number.
405 static void* allocate(size_t __n)
411 return(malloc_alloc::allocate(__n));
460 /* We allocate memory in large chunks in order to avoid fragmenting */
515 _S_start_free = (char*)malloc_alloc::allocate(__bytes_to_get);
574 __result = allocate(__new_sz);
710 // compiler happy. Otherwise it appears to allocate too little
758 _Tp* allocate(size_type __n, const void* = 0) {
759 return __n != 0 ? static_cast<_Tp*>(_Alloc::allocate(__n * sizeof(_Tp)))
835 _Tp* allocate(size_type __n, const void* = 0) {
837 ? static_cast<_Tp*>(__underlying_alloc.allocate(__n * sizeof(_Tp)))
956 // static _Tp* allocate(size_t)