Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 82) sorted by relevance

1234

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/allocator.traits/allocator.traits.members/
Dallocate_hint.pass.cpp27 value_type* allocate(std::size_t n) in allocate() function
39 value_type* allocate(std::size_t n) in allocate() function
44 value_type* allocate(std::size_t n, const void* p) in allocate() function
56 assert(std::allocator_traits<A<int> >::allocate(a, 10, nullptr) == (int*)0xDEADBEEF); in main()
59 assert(std::allocator_traits<B<int> >::allocate(b, 11, nullptr) == (int*)0xFEADBEEF); in main()
Dallocate.pass.cpp27 value_type* allocate(std::size_t n) in allocate() function
37 assert(std::allocator_traits<A<int> >::allocate(a, 10) == (int*)0xDEADBEEF); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.members/
Dallocate_size_hint.pass.cpp30 assert(a.allocate(10, (const void*)0) == (int*)10); in main()
37 assert(a.allocate(10, (const void*)10) == (int*)10); in main()
44 assert(a.allocate(10, (const void*)20) == (int*)10); in main()
52 assert(a.allocate(10, (const void*)0) == (int*)0); in main()
59 assert(a.allocate(10, (const void*)10) == (int*)10); in main()
66 assert(a.allocate(10, (const void*)20) == (int*)20); in main()
Dallocate_size.pass.cpp30 assert(a.allocate(10) == (int*)10); in main()
37 assert(a.allocate(10) == (int*)10); in main()
44 assert(a.allocate(10) == (int*)10); in main()
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_alloc.h67 static void* _STLP_CALL allocate(size_t __n)
92 static void* _STLP_CALL allocate(size_t __n) { return __stl_new(__n); } in allocate() function
133 static void* _STLP_CALL allocate(size_t);
157 static void* _STLP_CALL allocate(size_t& __n) in allocate() function
301 _Tp* allocate(size_type __n, const void* = 0) {
307 _Tp* __ret = __REINTERPRET_CAST(_Tp*, __sgi_alloc::allocate(__buf_size));
348 _Tp* __ret = __REINTERPRET_CAST(_Tp*, __sgi_alloc::allocate(__buf_size)); in _M_allocate()
525 _Tp* allocate(size_type __n, size_type& __allocated_n) {
531 return allocate(__n, __allocated_n, _STLportAlloc());
538 _Tp* allocate(size_type __n)
[all …]
D_pthread_alloc.h76 static void * _STLP_CALL allocate(size_t& __n);
83 static void * _STLP_CALL allocate(size_t& __n, __state_type* __a);
129 _Tp* allocate(size_type __n, const void* = 0) {
135 _Tp* __ret = __REINTERPRET_CAST(value_type*, _S_Alloc::allocate(__buf_size));
168 _Tp* allocate(size_type __n, size_type& __allocated_n) { in allocate() function
174 _Tp* __ret = __REINTERPRET_CAST(value_type*, _S_Alloc::allocate(__buf_size)); in allocate()
312 _Tp* allocate(size_type __n, const void* = 0) {
318 _Tp* __ret = __REINTERPRET_CAST(_Tp*, _S_Alloc::allocate(__buf_size, _M_state));
354 _Tp* allocate(size_type __n, size_type& __allocated_n) {
360 _Tp* __ret = __REINTERPRET_CAST(value_type*, _S_Alloc::allocate(__buf_size, _M_state));
D_alloc.c38 void * _STLP_CALL __debug_alloc<_Alloc>::allocate(size_t __n) { in allocate() function
45 __alloc_header *__result = (__alloc_header *)__allocator_type::allocate(__real_n); in allocate()
D_iostream_string.h63 _CharT* allocate(size_type __n, const void* __ptr = 0) {
65 return _Base::allocate(__n, __ptr);
D_vector.c74 __tmp = this->_M_end_of_storage.allocate(__n, __n); in reserve()
88 pointer __new_start = this->_M_end_of_storage.allocate(__len, __len); in _M_insert_overflow_aux()
111 pointer __new_start = this->_M_end_of_storage.allocate(__len, __len); in _M_insert_overflow()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/default.allocator/allocator.members/
Dallocate.pass.cpp50 A* ap = a.allocate(3); in main()
57 A* ap2 = a.allocate(3, (const void*)5); in main()
Dconstruct.pass.cpp84 A* ap = a.allocate(3); in main()
129 move_only* ap = a.allocate(3); in main()
/ndk/sources/cxx-stl/stlport/src/
Dallocators.cpp131 void* _STLP_CALL __malloc_alloc::allocate(size_t __n) in allocate() function in __malloc_alloc
835 static void * allocate(size_t& __n);
842 static void * allocate(size_t& __n, __state_type* __a);
974 _S_start_free = (char *)__malloc_alloc::allocate(__bytes_to_get); in _S_chunk_alloc()
978 _S_start_free = (char *)__malloc_alloc::allocate(__bytes_to_get); in _S_chunk_alloc()
990 void *_Pthread_alloc_impl::allocate(size_t& __n) { in allocate() function in _Pthread_alloc_impl
997 return __malloc_alloc::allocate(__n); in allocate()
1034 void *_Pthread_alloc_impl::allocate(size_t& __n, __state_type* __a) { in allocate() function in _Pthread_alloc_impl
1040 return __malloc_alloc::allocate(__n); in allocate()
1087 __result = allocate(__new_sz); in reallocate()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dallocator_test.cpp43 char* buf = charAllocator.allocate(0); in zero_allocation()
63 BigStructAllocType::pointer pbigStruct = bigStructAlloc.allocate(1024 * 1024 * 1024); in bad_alloc_test()
Drawriter_test.cpp46 p = a.allocate(5); in rawiter1()
Dstack_allocator.h88 _Tp* allocate(size_type n, void* = 0) {
115 return allocate(n); in _M_allocate()
/ndk/tests/device/test-stlport/unit/
Dallocator_test.cpp43 char* buf = charAllocator.allocate(0); in zero_allocation()
63 BigStructAllocType::pointer pbigStruct = bigStructAlloc.allocate(1024 * 1024 * 1024); in bad_alloc_test()
Drawriter_test.cpp46 p = a.allocate(5); in rawiter1()
Dstack_allocator.h88 _Tp* allocate(size_type n, void* = 0) {
115 return allocate(n); in _M_allocate()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/smart_ptr/detail/
Dsp_counted_impl.hpp90 return std::allocator<this_type>().allocate( 1, static_cast<this_type *>(0) ); in operator new()
160 return std::allocator<this_type>().allocate( 1, static_cast<this_type *>(0) ); in operator new()
Dshared_count.hpp197 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) ); in shared_count()
214 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) ); in shared_count()
245 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) ); in shared_count()
262 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) ); in shared_count()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/
Dstack_allocator.h39 pointer allocate(size_type n, const void* = 0)
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/
Dtest_allocator.h63 pointer allocate(size_type n, const void* = 0)
123 pointer allocate(size_type n, const void* = 0)
200 T* allocate(std::size_t n) in allocate() function
Dallocators.h42 T* allocate(std::size_t n) in allocate() function
98 T* allocate(std::size_t n, const void* hint) in allocate() function
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/
Dtest_allocator.h58 pointer allocate(size_type n, const void* = 0)
133 T* allocate(std::size_t n) in allocate() function
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dscoped_allocator68 pointer allocate(size_type n);
69 pointer allocate(size_type n, const_void_pointer hint);
455 pointer allocate(size_type __n)
457 allocate(outer_allocator(), __n);}
459 pointer allocate(size_type __n, const_void_pointer __hint)
461 allocate(outer_allocator(), __n, __hint);}

1234