Searched refs:allocator (Results 1 - 25 of 218) sorted by relevance

123456789

/external/clang/test/Modules/Inputs/cxx-lookup/
H A Dx.h1 template <class T> class allocator;
2 struct X { virtual allocator<char> f(); };
H A Dy.h4 extern allocator<ulittle32_t> *x;
/external/libcxx/test/std/utilities/memory/default.allocator/
H A Dallocator_types.pass.cpp15 // class allocator
26 // template <class U> struct rebind {typedef allocator<U> other;};
36 static_assert((std::is_same<std::allocator<char>::size_type, std::size_t>::value), "");
37 static_assert((std::is_same<std::allocator<char>::difference_type, std::ptrdiff_t>::value), "");
38 static_assert((std::is_same<std::allocator<char>::pointer, char*>::value), "");
39 static_assert((std::is_same<std::allocator<char>::const_pointer, const char*>::value), "");
40 static_assert((std::is_same<std::allocator<char>::value_type, char>::value), "");
41 static_assert((std::is_same<std::allocator<char>::reference, char&>::value), "");
42 static_assert((std::is_same<std::allocator<char>::const_reference, const char&>::value), "");
43 static_assert((std::is_same<std::allocator<cha
[all...]
H A Dallocator_void.pass.cpp13 // class allocator<void>
20 // template <class _Up> struct rebind {typedef allocator<_Up> other;};
28 static_assert((std::is_same<std::allocator<void>::pointer, void*>::value), "");
29 static_assert((std::is_same<std::allocator<void>::const_pointer, const void*>::value), "");
30 static_assert((std::is_same<std::allocator<void>::value_type, void>::value), "");
31 static_assert((std::is_same<std::allocator<void>::rebind<int>::other,
32 std::allocator<int> >::value), "");
33 std::allocator<void> a;
34 std::allocator<void> a2 = a;
/external/skia/src/pathops/
H A DSkOpTAllocator.h16 static T* Allocate(SkChunkAlloc* allocator) { argument
17 void* ptr = allocator->allocThrow(sizeof(T));
22 static T* AllocateArray(SkChunkAlloc* allocator, int count) { argument
23 void* ptr = allocator->allocThrow(sizeof(T) * count);
28 static T* New(SkChunkAlloc* allocator) { argument
29 return new (Allocate(allocator)) T();
H A DSkAddIntersections.h16 SkChunkAlloc* allocator);
H A DSkOpContour.cpp14 SkChunkAlloc* allocator) {
17 SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 2);
19 return appendSegment(allocator).addLine(ptStorage, this);
22 SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 3);
24 return appendSegment(allocator).addQuad(ptStorage, this);
30 SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 4);
32 return appendSegment(allocator).addCubic(ptStorage, this);
13 addCurve(SkPath::Verb verb, const SkPoint pts[4], SkChunkAlloc* allocator) argument
H A DSkPathOpsTightBounds.cpp11 SkChunkAlloc allocator(4096); // FIXME: constant-ize, tune
16 SkOpEdgeBuilder builder(path, &contour, &allocator, &globalState);
17 if (!builder.finish(&allocator)) {
/external/libcxx/test/std/utilities/memory/default.allocator/allocator.globals/
H A Deq.pass.cpp12 // allocator:
16 // operator==(const allocator<T1>&, const allocator<T2>&) throw();
20 // operator!=(const allocator<T1>&, const allocator<T2>&) throw();
27 std::allocator<int> a1;
28 std::allocator<int> a2;
/external/libcxx/test/std/utilities/memory/allocator.uses/allocator.uses.trait/
H A Duses_allocator.pass.cpp28 static_assert((!std::uses_allocator<int, std::allocator<int> >::value), "");
29 static_assert(( std::uses_allocator<std::vector<int>, std::allocator<int> >::value), "");
30 static_assert((!std::uses_allocator<A, std::allocator<int> >::value), "");
31 static_assert((!std::uses_allocator<B, std::allocator<int> >::value), "");
/external/clang/test/SemaTemplate/
H A Dexception-spec-crash.cpp9 class allocator;
12 class allocator<char> {}; class
29 basic_string<allocator<char> > vectorFoo_;
/external/libcxx/test/std/containers/sequences/deque/deque.cons/
H A Dsize_value.pass.cpp35 test<int, std::allocator<int> >(0, 5);
36 test<int, std::allocator<int> >(1, 10);
37 test<int, std::allocator<int> >(10, 11);
38 test<int, std::allocator<int> >(1023, -11);
39 test<int, std::allocator<int> >(1024, 25);
40 test<int, std::allocator<int> >(1025, 0);
41 test<int, std::allocator<int> >(2047, 110);
42 test<int, std::allocator<int> >(2048, -500);
43 test<int, std::allocator<int> >(2049, 654);
44 test<int, std::allocator<in
[all...]
H A Dsize.pass.cpp88 test<DefaultOnly, std::allocator<DefaultOnly> >(0);
89 test<DefaultOnly, std::allocator<DefaultOnly> >(1);
90 test<DefaultOnly, std::allocator<DefaultOnly> >(10);
91 test<DefaultOnly, std::allocator<DefaultOnly> >(1023);
92 test<DefaultOnly, std::allocator<DefaultOnly> >(1024);
93 test<DefaultOnly, std::allocator<DefaultOnly> >(1025);
94 test<DefaultOnly, std::allocator<DefaultOnly> >(2047);
95 test<DefaultOnly, std::allocator<DefaultOnly> >(2048);
96 test<DefaultOnly, std::allocator<DefaultOnly> >(2049);
97 test<DefaultOnly, std::allocator<DefaultOnl
[all...]
/external/skia/tests/
H A DGrAllocatorTest.cpp26 static void check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt,
29 // Adds cnt items to the allocator, tests the cnts and iterators, pops popCnt items and checks
30 // again. Finally it resets the allocator and checks again.
31 static void check_allocator(GrTAllocator<C>* allocator, int cnt, int popCnt, argument
33 SkASSERT(allocator);
34 SkASSERT(allocator->empty());
38 allocator->push_back(C(i));
40 allocator->push_back() = C(i);
43 check_allocator_helper(allocator, cnt, popCnt, reporter);
44 allocator
50 check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt, skiatest::Reporter* reporter) argument
[all...]
H A DNameAllocatorTest.cpp137 GrGLNameAllocator allocator(1, 1 + range);
139 allocator.allocateName();
141 REPORTER_ASSERT(reporter, 0 == allocator.allocateName());
144 allocator.free(allocator.firstName() - 1);
145 allocator.free(allocator.endName());
146 REPORTER_ASSERT(reporter, 0 == allocator.allocateName());
150 allocator.free(i);
154 allocator
[all...]
/external/clang/test/CodeCompletion/
H A Dtemplates.cpp3 class allocator { class in namespace:std
8 template<typename T, typename Alloc = std::allocator<T> >
21 // CHECK-CC1: allocator<<#typename T#>>
/external/clang/test/Analysis/
H A DNewDelete-custom.cpp10 void *allocator(std::size_t size);
12 void *operator new[](std::size_t size) throw() { return allocator(size); }
13 void *operator new(std::size_t size) throw() { return allocator(size); }
14 void *operator new(std::size_t size, std::nothrow_t& nothrow) throw() { return allocator(size); }
/external/clang/test/SemaCXX/
H A DPR9902.cpp24 struct allocator {}; struct
28 allocator_traits<allocator<char>>::rebind_alloc<int> a;
/external/google-breakpad/src/common/
H A Dmemory_unittest.cc40 PageAllocator allocator; local
44 PageAllocator allocator; local
47 uint8_t *p = reinterpret_cast<uint8_t*>(allocator.Alloc(i));
54 PageAllocator allocator; local
56 uint8_t *p = reinterpret_cast<uint8_t*>(allocator.Alloc(10000));
59 uint8_t *p = reinterpret_cast<uint8_t*>(allocator.Alloc(i));
/external/libcxx/test/std/containers/sequences/list/
H A Dtypes.pass.cpp12 // template <class T, class Alloc = allocator<T> >
35 static_assert((std::is_same<std::list<int>::allocator_type, std::allocator<int> >::value), "");
36 static_assert((std::is_same<std::list<int>::reference, std::allocator<int>::reference>::value), "");
37 static_assert((std::is_same<std::list<int>::const_reference, std::allocator<int>::const_reference>::value), "");
38 static_assert((std::is_same<std::list<int>::pointer, std::allocator<int>::pointer>::value), "");
39 static_assert((std::is_same<std::list<int>::const_pointer, std::allocator<int>::const_pointer>::value), "");
/external/v8/src/
H A Dlist.h32 explicit List(AllocationPolicy allocator = AllocationPolicy()) {
33 Initialize(0, allocator);
36 AllocationPolicy allocator = AllocationPolicy())) {
37 Initialize(capacity, allocator);
49 AllocationPolicy allocator = AllocationPolicy())) {
50 return allocator.New(static_cast<int>(size));
57 INLINE(void operator delete(void* p, AllocationPolicy allocator)) { argument
87 void Add(const T& element, AllocationPolicy allocator = AllocationPolicy());
91 AllocationPolicy allocator = AllocationPolicy());
95 AllocationPolicy allocator
[all...]
/external/clang/test/CodeGenCXX/
H A Dweak-external.cpp30 template<class T> class allocator;
33 class _Allocator = allocator<_CharT> >
35 typedef basic_string<char, char_traits<char>, allocator<char> > string;
/external/compiler-rt/lib/lsan/
H A Dlsan_allocator.cc56 static Allocator allocator; member in namespace:__lsan
60 allocator.InitLinkerInitialized(common_flags()->allocator_may_return_null);
64 allocator.SwallowCache(&cache);
68 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p));
96 void *p = allocator.Allocate(&cache, size, alignment, false);
97 // Do not rely on the allocator to clear the memory (it's slow).
98 if (cleared && allocator.FromPrimary(p))
108 allocator.Deallocate(&cache, p);
116 allocator.Deallocate(&cache, p);
119 p = allocator
[all...]
/external/skia/src/core/
H A DSkBitmapScaler.h86 SkBitmap::Allocator* allocator = NULL);
91 SkBitmap::Allocator* allocator = NULL);
/external/compiler-rt/lib/msan/
H A Dmsan_allocator.cc12 // MemorySanitizer allocator.
67 static Allocator allocator; member in namespace:__msan
77 allocator.Init(common_flags()->allocator_may_return_null);
87 allocator.SwallowCache(GetAllocatorCache(this));
96 return allocator.ReturnNullOrDie();
102 allocated = allocator.Allocate(cache, size, alignment, false);
106 allocated = allocator.Allocate(cache, size, alignment, false);
109 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated));
129 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p));
145 allocator
[all...]

Completed in 603 milliseconds

123456789