/external/llvm/unittests/Support/ |
H A D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 1); 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1); 22 int *c = (int*)Alloc.Allocate(sizeof(int), 1); 31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 33 BumpPtrAllocator Alloc2 = std::move(Alloc); 34 EXPECT_EQ(0U, Alloc.GetNumSlabs()); 44 Alloc = std::move(Alloc2); 46 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 51 BumpPtrAllocator Alloc; local 63 BumpPtrAllocator Alloc; local 85 BumpPtrAllocator Alloc; local 106 BumpPtrAllocator Alloc; local 119 BumpPtrAllocator Alloc; local 127 BumpPtrAllocator Alloc; local 175 BumpPtrAllocatorImpl<MockSlabAllocator> Alloc; local [all...] |
/external/clang/test/CodeCompletion/ |
H A D | templates.cpp | 8 template<typename T, typename Alloc = std::allocator<T> > 9 class vector : Alloc { 14 template<typename Alloc> class vector<bool, Alloc>; 22 // CHECK-CC1-NEXT: vector<<#typename T#>{#, <#typename Alloc#>#}>
|
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.generic.obs/ |
H A D | generic_string_alloc.pass.cpp | 44 using Alloc = malloc_allocator<CharT>; 45 using Str = std::basic_string<CharT, Traits, Alloc>; 50 Alloc a; 51 Alloc::disable_default_constructor = true; 52 Str s = p.generic_string<wchar_t, Traits, Alloc>(a); 54 assert(Alloc::alloc_count > 0); 55 assert(Alloc::outstanding_alloc() == 1);
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
H A D | AllocatorTest.cpp | 20 BumpPtrAllocator Alloc; local 21 int *a = (int*)Alloc.Allocate(sizeof(int), 0); 22 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0); 23 int *c = (int*)Alloc.Allocate(sizeof(int), 0); 32 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 37 BumpPtrAllocator Alloc(4096, 4096); 38 Alloc.Allocate(3000, 0); 39 EXPECT_EQ(1U, Alloc.GetNumSlabs()); 40 Alloc.Allocate(3000, 0); 41 EXPECT_EQ(2U, Alloc 64 BumpPtrAllocator Alloc; local [all...] |
/external/llvm/include/llvm/Support/ |
H A D | StringSaver.h | 22 BumpPtrAllocator &Alloc; member in class:llvm::final 25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} argument
|
/external/libcxx/test/support/ |
H A D | asan_testing.h | 19 template <typename T, typename Alloc> 20 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c ) 22 if ( std::is_same<Alloc, std::allocator<T> >::value && c.data() != NULL) 29 template <typename T, typename Alloc> 30 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &)
|
H A D | uses_alloc_types.hpp | 21 // (1) UA_AllocArg: 'T(allocator_arg_t, Alloc const&, Args&&...)' 22 // (2) UA_AllocLast: 'T(Args&&..., Alloc const&)' 57 template <class Alloc, std::size_t N> 60 // 'Alloc' type and exactly 'N' additional arguments. It also provides 64 template <class Alloc, std::size_t N> 67 // 'Alloc' type and exactly 'N' additional arguments. It also provides 70 template <class Alloc, std::size_t N> 73 // the specified 'Alloc' type and exactly 'N' additional arguments. It also 76 template <class Alloc, std::size_t> 79 // the specified 'Alloc' typ [all...] |
/external/llvm/unittests/CodeGen/ |
H A D | DIEHashTest.cpp | 26 BumpPtrAllocator Alloc; member in class:__anon13624::DIEHashTest 41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); 43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size); 50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); 52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); 55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One); 56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One); 65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); 68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr); 69 Foo.addValue(Alloc, dwar [all...] |
/external/clang/test/CodeGenCXX/ |
H A D | mangle-alias-template.cpp | 4 template<typename T> using Alloc = alloc<T>; 5 template<typename T, typename A = Alloc<T>> struct vector {}; 27 Alloc<int> AC; 31 h<Alloc>(AC);
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
H A D | p2.cpp | 18 template<class T> struct Alloc {}; struct in namespace:StdExample 19 template<class T> using Vec = vector<T, Alloc<T>>; 27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} 34 void g(TT<int, Alloc<int>>); 42 // v's type is same as vector<int, Alloc<int>>. 43 using VTest = vector<int, Alloc<int>>;
|
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_dense_alloc_test.cc | 25 typedef DenseSlabAlloc<int, 128, 128> Alloc; typedef 26 typedef Alloc::Cache Cache; 27 typedef Alloc::IndexT IndexT; 30 Alloc alloc; 37 IndexT idx = alloc.Alloc(&cache);
|
/external/libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
H A D | db_deallocate.pass.cpp | 32 using Alloc = ex::polymorphic_allocator<int>; 33 using Traits = std::allocator_traits<Alloc>; 35 Alloc a(&R);
|
/external/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/ |
H A D | db_deallocate.pass.cpp | 32 using Alloc = NullAllocator<char>; 33 using R = ex::resource_adaptor<Alloc>; 35 ex::resource_adaptor<Alloc> r(Alloc{P});
|
/external/libcxx/test/std/containers/associative/ |
H A D | iterator_types.pass.cpp | 62 typedef test_allocator<ValueTp> Alloc; typedef 63 typedef std::map<int, int, std::less<int>, Alloc> Map; 69 typedef min_allocator<ValueTp> Alloc; typedef 70 typedef std::map<int, int, std::less<int>, Alloc> Map; 81 typedef test_allocator<ValueTp> Alloc; typedef 82 typedef std::multimap<int, int, std::less<int>, Alloc> Map; 88 typedef min_allocator<ValueTp> Alloc; typedef 89 typedef std::multimap<int, int, std::less<int>, Alloc> Map; 100 typedef test_allocator<ValueTp> Alloc; typedef 101 typedef std::set<ValueTp, std::less<ValueTp>, Alloc> Se 107 typedef min_allocator<ValueTp> Alloc; typedef 119 typedef test_allocator<ValueTp> Alloc; typedef 126 typedef min_allocator<ValueTp> Alloc; typedef [all...] |
/external/llvm/lib/Support/ |
H A D | StringSaver.cpp | 15 char *P = Alloc.Allocate<char>(S.size() + 1);
|
/external/clang/test/SemaCXX/ |
H A D | PR9902.cpp | 16 template <class Alloc> 19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
|
H A D | PR9908.cpp | 10 template <class Alloc> 13 typedef Alloc allocator_type;
|
/external/libchrome/base/containers/ |
H A D | hash_tables.h | 48 class Alloc = std::allocator<std::pair<const Key, T>>> 49 using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>; 56 class Alloc = std::allocator<std::pair<const Key, T>>> 57 using hash_multimap = std::unordered_multimap<Key, T, Hash, Pred, Alloc>; 63 class Alloc = std::allocator<Key>> 64 using hash_multiset = std::unordered_multiset<Key, Hash, Pred, Alloc>; 70 class Alloc = std::allocator<Key>> 71 using hash_set = std::unordered_set<Key, Hash, Pred, Alloc>;
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
H A D | construct_pair_const_lvalue_pair.pass.cpp | 69 template <class Alloc, class TT, class UU> 73 using T = NotUsesAllocator<Alloc, 1>; 74 using U = NotUsesAllocator<Alloc, 1>; 78 using T = UsesAllocatorV1<Alloc, 1>; 79 using U = UsesAllocatorV2<Alloc, 1>; 83 using T = UsesAllocatorV2<Alloc, 1>; 84 using U = UsesAllocatorV3<Alloc, 1>; 88 using T = UsesAllocatorV3<Alloc, 1>; 89 using U = NotUsesAllocator<Alloc, 1>;
|
/external/libcxx/test/std/containers/unord/ |
H A D | iterator_difference_type.pass.cpp | 85 typedef test_allocator<ValueTp> Alloc; typedef 86 typedef std::unordered_map<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; 92 typedef min_allocator<ValueTp> Alloc; typedef 93 typedef std::unordered_map<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; 104 typedef test_allocator<ValueTp> Alloc; typedef 105 typedef std::unordered_multimap<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; 111 typedef min_allocator<ValueTp> Alloc; typedef 112 typedef std::unordered_multimap<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; 123 typedef test_allocator<ValueTp> Alloc; typedef 124 typedef std::unordered_set<ValueTp, std::hash<ValueTp>, std::equal_to<ValueTp>, Alloc> Se 130 typedef min_allocator<ValueTp> Alloc; typedef 142 typedef test_allocator<ValueTp> Alloc; typedef 149 typedef min_allocator<ValueTp> Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.map/ |
H A D | swap_member.pass.cpp | 13 // class Alloc = allocator<pair<const Key, T>>> 34 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); 62 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); 110 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 152 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 214 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 242 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 290 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 332 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 394 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 422 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 470 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 512 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
H A D | swap_non_member.pass.cpp | 13 // class Alloc = allocator<pair<const Key, T>>> 34 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); 62 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; 76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); 110 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 152 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef 214 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 242 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 290 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 332 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef 394 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 422 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 470 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef 512 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.multiset/ |
H A D | swap_member.pass.cpp | 13 // class Alloc = allocator<Value>> 33 typedef test_allocator<int> Alloc; typedef 34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); 61 typedef test_allocator<int> Alloc; typedef 62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); 109 typedef test_allocator<int> Alloc; typedef 151 typedef test_allocator<int> Alloc; typedef 213 typedef other_allocator<int> Alloc; typedef 241 typedef other_allocator<int> Alloc; typedef 289 typedef other_allocator<int> Alloc; typedef 331 typedef other_allocator<int> Alloc; typedef 393 typedef min_allocator<int> Alloc; typedef 421 typedef min_allocator<int> Alloc; typedef 469 typedef min_allocator<int> Alloc; typedef 511 typedef min_allocator<int> Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/ |
H A D | swap_non_member.pass.cpp | 13 // class Alloc = allocator<Value>> 33 typedef test_allocator<int> Alloc; typedef 34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); 61 typedef test_allocator<int> Alloc; typedef 62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; 75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); 109 typedef test_allocator<int> Alloc; typedef 151 typedef test_allocator<int> Alloc; typedef 213 typedef other_allocator<int> Alloc; typedef 241 typedef other_allocator<int> Alloc; typedef 289 typedef other_allocator<int> Alloc; typedef 331 typedef other_allocator<int> Alloc; typedef 393 typedef min_allocator<int> Alloc; typedef 421 typedef min_allocator<int> Alloc; typedef 469 typedef min_allocator<int> Alloc; typedef 511 typedef min_allocator<int> Alloc; typedef [all...] |
/external/libcxx/test/std/containers/unord/unord.set/ |
H A D | swap_member.pass.cpp | 13 // class Alloc = allocator<Value>> 33 typedef test_allocator<int> Alloc; typedef 34 typedef std::unordered_set<int, Hash, Compare, Alloc> C; 35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); 61 typedef test_allocator<int> Alloc; typedef 62 typedef std::unordered_set<int, Hash, Compare, Alloc> C; 75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); 109 typedef test_allocator<int> Alloc; typedef 151 typedef test_allocator<int> Alloc; typedef 213 typedef other_allocator<int> Alloc; typedef 241 typedef other_allocator<int> Alloc; typedef 289 typedef other_allocator<int> Alloc; typedef 331 typedef other_allocator<int> Alloc; typedef 393 typedef min_allocator<int> Alloc; typedef 421 typedef min_allocator<int> Alloc; typedef 469 typedef min_allocator<int> Alloc; typedef 511 typedef min_allocator<int> Alloc; typedef [all...] |