HomeSort by relevance Sort by last modified time
    Searched refs:Alloc (Results 1 - 25 of 315) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/compile/mclinker/include/mcld/ADT/
TreeAllocator.h 32 typedef GCFactory<Node<DataType>, 64> Alloc;
36 typedef typename Alloc::iterator iterator;
37 typedef typename Alloc::const_iterator const_iterator;
42 NodeType* result = Alloc::allocate();
43 Alloc::construct(result);
57 if (Alloc::empty()) {
71 { Alloc::reset(); }
75 Alloc::m_pRoot = pClient.Alloc::m_pRoot;
76 Alloc::m_pCurrent = pClient.Alloc::m_pCurrent
    [all...]
  /external/llvm/unittests/Support/
AllocatorTest.cpp 19 BumpPtrAllocator Alloc;
20 int *a = (int*)Alloc.Allocate(sizeof(int), 0);
21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0);
22 int *c = (int*)Alloc.Allocate(sizeof(int), 0);
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;
    [all...]
  /external/clang/test/CodeCompletion/
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#>#}>
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/
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> &c )
  /frameworks/compile/mclinker/include/mcld/Support/
GCFactory.h 111 template<typename Alloc>
112 class GCFactoryBase : public Alloc
115 typedef DataIterator<typename Alloc::chunk_type,
117 typename Alloc::value_type> > iterator;
118 typedef DataIterator<typename Alloc::chunk_type,
120 typename Alloc::value_type> > const_iterator;
122 typedef typename Alloc::value_type value_type;
123 typedef typename Alloc::pointer pointer;
124 typedef typename Alloc::reference reference;
125 typedef typename Alloc::size_type size_type
    [all...]
  /external/clang/test/CXX/temp/temp.decls/temp.alias/
p2.cpp 18 template<class T> struct Alloc {};
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/
tsan_dense_alloc_test.cc 25 typedef DenseSlabAlloc<int, 128, 128> Alloc;
26 typedef Alloc::Cache Cache;
27 typedef Alloc::IndexT IndexT;
30 Alloc alloc; local
32 alloc.InitCache(&cache);
37 IndexT idx = alloc.Alloc(&cache);
40 int *v = alloc.Map(idx);
46 int *v = alloc.Map(idx)
    [all...]
  /external/clang/test/CodeGenCXX/
mangle-alias-template.cpp 3 template<typename T> struct alloc {}; struct
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/SemaCXX/
PR9902.cpp 16 template <class Alloc>
19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
PR9908.cpp 10 template <class Alloc>
13 typedef Alloc allocator_type;
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/ext/pb_ds/detail/
container_base_dispatch.hpp 108 typename Policy_Tl, typename Alloc>
111 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
113 Policy_Tl, Alloc>
122 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
125 template<typename Key, typename Policy_Tl, typename Alloc>
127 Policy_Tl, Alloc>
136 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
139 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
140 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
147 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type
    [all...]
types_traits.hpp 52 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
55 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
60 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
62 typedef typename Alloc::template rebind<Key>::other key_allocator;
68 typedef typename Alloc::size_type size_type;
  /prebuilts/ndk/5/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/
container_base_dispatch.hpp 108 typename Policy_Tl, typename Alloc>
111 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
113 Policy_Tl, Alloc>
122 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
125 template<typename Key, typename Policy_Tl, typename Alloc>
127 Policy_Tl, Alloc>
136 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
139 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
140 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
147 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type
    [all...]
types_traits.hpp 52 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
55 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
60 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
62 typedef typename Alloc::template rebind<Key>::other key_allocator;
68 typedef typename Alloc::size_type size_type;
  /prebuilts/ndk/6/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/
container_base_dispatch.hpp 108 typename Policy_Tl, typename Alloc>
111 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
113 Policy_Tl, Alloc>
122 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
125 template<typename Key, typename Policy_Tl, typename Alloc>
127 Policy_Tl, Alloc>
136 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
139 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
140 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
147 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type
    [all...]
types_traits.hpp 52 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
55 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
60 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
62 typedef typename Alloc::template rebind<Key>::other key_allocator;
68 typedef typename Alloc::size_type size_type;
  /prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/
container_base_dispatch.hpp 108 typename Policy_Tl, typename Alloc>
111 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
113 Policy_Tl, Alloc>
122 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
125 template<typename Key, typename Policy_Tl, typename Alloc>
127 Policy_Tl, Alloc>
136 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
139 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
140 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
147 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type
    [all...]
types_traits.hpp 52 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
55 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
60 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
62 typedef typename Alloc::template rebind<Key>::other key_allocator;
68 typedef typename Alloc::size_type size_type;
  /prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.4.3/include/ext/pb_ds/detail/
container_base_dispatch.hpp 108 typename Policy_Tl, typename Alloc>
111 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
113 Policy_Tl, Alloc>
122 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
125 template<typename Key, typename Policy_Tl, typename Alloc>
127 Policy_Tl, Alloc>
136 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
139 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
140 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
147 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type
    [all...]
types_traits.hpp 52 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
55 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
60 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
62 typedef typename Alloc::template rebind<Key>::other key_allocator;
68 typedef typename Alloc::size_type size_type;
  /prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.6/include/ext/pb_ds/detail/
container_base_dispatch.hpp 108 typename Policy_Tl, typename Alloc>
111 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
113 Policy_Tl, Alloc>
122 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
125 template<typename Key, typename Policy_Tl, typename Alloc>
127 Policy_Tl, Alloc>
136 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
139 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
140 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
147 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type
    [all...]
types_traits.hpp 52 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
55 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
60 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
62 typedef typename Alloc::template rebind<Key>::other key_allocator;
68 typedef typename Alloc::size_type size_type;
  /prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.6/include/ext/pb_ds/detail/
container_base_dispatch.hpp 108 typename Policy_Tl, typename Alloc>
111 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
113 Policy_Tl, Alloc>
122 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
125 template<typename Key, typename Policy_Tl, typename Alloc>
127 Policy_Tl, Alloc>
136 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
139 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
140 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
147 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type
    [all...]
types_traits.hpp 52 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
55 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
60 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
62 typedef typename Alloc::template rebind<Key>::other key_allocator;
68 typedef typename Alloc::size_type size_type;
  /external/chromium_org/third_party/tcmalloc/chromium/src/base/
stl_allocator.h 46 // that uses a given type-less allocator Alloc, which must provide:
47 // static void* Alloc::Allocate(size_t size);
48 // static void Alloc::Free(void* ptr, size_t size);
58 template <typename T, class Alloc>
70 typedef STL_Allocator<T1, Alloc> other;
75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { }
83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T)));
85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); }

Completed in 685 milliseconds

1 2 3 4 5 6 7 8 91011>>