Home
last modified time | relevance | path

Searched refs:allocator_type (Results 1 – 25 of 109) sorted by relevance

12345

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/container.adaptors/queue/queue.cons.alloc/
Dctor_rcontainer_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef
43 explicit test(const allocator_type& a) : base(a) {} in test()
44 test(const container_type& c, const allocator_type& a) : base(c, a) {} in test()
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {} in test()
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
47 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
Dctor_rqueue_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef
43 explicit test(const allocator_type& a) : base(a) {} in test()
44 test(const container_type& c, const allocator_type& a) : base(c, a) {} in test()
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {} in test()
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
47 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
Dctor_queue_alloc.pass.cpp37 typedef test_allocator<int> allocator_type; typedef
40 explicit test(const allocator_type& a) : base(a) {} in test()
41 test(const container_type& c, const allocator_type& a) : base(c, a) {} in test()
42 test(const test& q, const allocator_type& a) : base(q, a) {} in test()
43 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/container.adaptors/stack/stack.cons.alloc/
Dctor_rcontainer_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef
43 explicit test(const allocator_type& a) : base(a) {} in test()
44 test(const container_type& c, const allocator_type& a) : base(c, a) {} in test()
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {} in test()
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
47 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
Dctor_rqueue_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef
43 explicit test(const allocator_type& a) : base(a) {} in test()
44 test(const container_type& c, const allocator_type& a) : base(c, a) {} in test()
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {} in test()
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
47 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
Dctor_copy_alloc.pass.cpp37 typedef test_allocator<int> allocator_type; typedef
40 explicit test(const allocator_type& a) : base(a) {} in test()
41 test(const container_type& c, const allocator_type& a) : base(c, a) {} in test()
42 test(const test& q, const allocator_type& a) : base(q, a) {} in test()
43 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_hash_set.h72 typedef typename _Ht::allocator_type allocator_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
76 allocator_type get_allocator() const { return _M_ht.get_allocator(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS()
84 : _M_ht(0, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS()
86 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS()
88 : _M_ht(__n, __hf, key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS()
91 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
94 : _M_ht(__n, __hf, __eql, allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS()
96 const allocator_type& __a) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
108 : _M_ht(0, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
112 : _M_ht(__n, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
[all …]
D_hash_map.h78 typedef typename _Ht::allocator_type allocator_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
82 allocator_type get_allocator() const { return _M_ht.get_allocator(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS()
88 hash_map() : _M_ht(0, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS()
90 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS()
92 : _M_ht(__n, __hf, key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS()
94 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
106 : _M_ht(0, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
110 : _M_ht(__n, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
115 : _M_ht(__n, __hf, key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
121 : _M_ht(__n, __hf, __eql, allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
[all …]
D_set.h79 typedef typename _Rep_type::allocator_type allocator_type; in _STLP_CREATE_ITERATOR_TRAITS() typedef
90 const allocator_type& __a = allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
93 : _M_t(_Compare(), allocator_type()) {} in _STLP_CREATE_ITERATOR_TRAITS()
95 : _M_t(__comp, allocator_type()) {} in _STLP_CREATE_ITERATOR_TRAITS()
96 set(const _Compare& __comp, const allocator_type& __a) in _STLP_CREATE_ITERATOR_TRAITS()
103 : _M_t(_Compare(), allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
109 : _M_t(__comp, allocator_type()) { _M_t.insert_unique(__first, __last); } in _STLP_CREATE_ITERATOR_TRAITS()
113 const allocator_type& __a _STLP_ALLOCATOR_TYPE_DFL) in _STLP_CREATE_ITERATOR_TRAITS()
117 : _M_t(_Compare(), allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
122 const allocator_type& __a = allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
[all …]
D_map.h91 typedef typename _Rep_type::allocator_type allocator_type; in _STLP_CREATE_ITERATOR_TRAITS() typedef
99 map() : _M_t(_Compare(), allocator_type()) {} in _STLP_CREATE_ITERATOR_TRAITS()
102 const allocator_type& __a = allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
105 : _M_t(__comp, allocator_type()) {} in _STLP_CREATE_ITERATOR_TRAITS()
106 explicit map(const _Compare& __comp, const allocator_type& __a) in _STLP_CREATE_ITERATOR_TRAITS()
113 : _M_t(_Compare(), allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
118 const allocator_type& __a _STLP_ALLOCATOR_TYPE_DFL) in _STLP_CREATE_ITERATOR_TRAITS()
124 : _M_t(__comp, allocator_type()) { _M_t.insert_unique(__first, __last); } in _STLP_CREATE_ITERATOR_TRAITS()
129 : _M_t(_Compare(), allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
134 const allocator_type& __a = allocator_type()) in _STLP_CREATE_ITERATOR_TRAITS()
[all …]
D_unordered_set.h66 typedef typename _Ht::allocator_type allocator_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
70 allocator_type get_allocator() const { return _M_ht.get_allocator(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS()
79 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
92 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
99 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
106 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
216 typedef typename _Ht::allocator_type allocator_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
220 allocator_type get_allocator() const { return _M_ht.get_allocator(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS()
229 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
242 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
[all …]
D_unordered_map.h72 typedef typename _Ht::allocator_type allocator_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
76 allocator_type get_allocator() const { return _M_ht.get_allocator(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS()
85 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
98 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
105 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
112 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
240 typedef typename _Ht::allocator_type allocator_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
244 allocator_type get_allocator() const { return _M_ht.get_allocator(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS()
253 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
266 const allocator_type& __a = allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/
Dalloc.pass.cpp30 assert(s.get_allocator() == typename S::allocator_type()); in test()
33 S s(typename S::allocator_type(5)); in test()
38 assert(s.get_allocator() == typename S::allocator_type(5)); in test()
54 assert(s.get_allocator() == typename S::allocator_type()); in test2()
57 S s(typename S::allocator_type{}); in test2()
62 assert(s.get_allocator() == typename S::allocator_type()); in test2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.members/
Dconstruct.pass.cpp29 typedef A1<B> allocator_type; typedef
31 explicit B(std::allocator_arg_t, const allocator_type& a, int i) in B()
45 typedef std::scoped_allocator_adaptor<A2<C>> allocator_type; typedef
47 explicit C(std::allocator_arg_t, const allocator_type& a, int i) in C()
61 typedef std::scoped_allocator_adaptor<A2<D>> allocator_type; typedef
63 explicit D(int i, int j, const allocator_type& a) in D()
78 typedef std::scoped_allocator_adaptor<A1<E>> allocator_type; typedef
80 explicit E(int i, int j, const allocator_type& a) in E()
95 typedef std::scoped_allocator_adaptor<A2<F>> allocator_type; typedef
103 explicit F(int i, int j, const allocator_type& a) in F()
/ndk/sources/cxx-stl/llvm-libc++/patches.android/
D0012-Relax-some-__always_inline__-for-GCC-4.9.patch80 _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value);
81 - _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a);
82 + _LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 explicit basic_string(const allocator_type& __a);
84 basic_string(const basic_string& __str, const allocator_type& __a);
89 _NOEXCEPT_(is_nothrow_move_constructible<allocator_type>::value);
91 basic_string(basic_string&& __str, const allocator_type& __a);
96 basic_string(const value_type* __s, const allocator_type& __a);
100 basic_string(const value_type* __s, size_type __n, const allocator_type& __a);
105 basic_string(size_type __n, value_type __c, const allocator_type& __a);
113 _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dunordered_set33 typedef Alloc allocator_type;
36 typedef typename allocator_traits<allocator_type>::pointer pointer;
37 typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
38 typedef typename allocator_traits<allocator_type>::size_type size_type;
39 typedef typename allocator_traits<allocator_type>::difference_type difference_type;
50 is_nothrow_default_constructible<allocator_type>::value);
53 const allocator_type& a = allocator_type());
58 const allocator_type& a = allocator_type());
59 explicit unordered_set(const allocator_type&);
66 is_nothrow_move_constructible<allocator_type>::value);
[all …]
Dset31 typedef Allocator allocator_type;
32 typedef typename allocator_type::reference reference;
33 typedef typename allocator_type::const_reference const_reference;
34 typedef typename allocator_type::size_type size_type;
35 typedef typename allocator_type::difference_type difference_type;
36 typedef typename allocator_type::pointer pointer;
37 typedef typename allocator_type::const_pointer const_pointer;
47 is_nothrow_default_constructible<allocator_type>::value &&
51 set(const value_compare& comp, const allocator_type& a);
57 const allocator_type& a);
[all …]
Dvector25 typedef Allocator allocator_type;
26 typedef typename allocator_type::reference reference;
27 typedef typename allocator_type::const_reference const_reference;
30 typedef typename allocator_type::size_type size_type;
31 typedef typename allocator_type::difference_type difference_type;
32 typedef typename allocator_type::pointer pointer;
33 typedef typename allocator_type::const_pointer const_pointer;
38 noexcept(is_nothrow_default_constructible<allocator_type>::value);
39 explicit vector(const allocator_type&);
41 explicit vector(size_type n, const allocator_type&); // C++14
[all …]
Dunordered_map33 typedef Alloc allocator_type;
37 typedef typename allocator_traits<allocator_type>::pointer pointer;
38 typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
39 typedef typename allocator_traits<allocator_type>::size_type size_type;
40 typedef typename allocator_traits<allocator_type>::difference_type difference_type;
51 is_nothrow_default_constructible<allocator_type>::value);
54 const allocator_type& a = allocator_type());
59 const allocator_type& a = allocator_type());
60 explicit unordered_map(const allocator_type&);
67 is_nothrow_move_constructible<allocator_type>::value);
[all …]
/ndk/sources/cxx-stl/stlport/stlport/stl/pointers/
D_vector.h54 typedef typename _Alloc_traits<_StorageType, _Alloc>::allocator_type _StorageTypeAlloc;
74 typedef typename _Alloc_traits<value_type, _Alloc>::allocator_type allocator_type; typedef
76 allocator_type get_allocator() const in get_allocator()
106 explicit vector(const allocator_type& __a = allocator_type())
114 const allocator_type& __a = allocator_type())
120 : _M_impl(__n, allocator_type() ) {} in vector()
134 const allocator_type& __a _STLP_ALLOCATOR_TYPE_DFL ) in vector()
146 const allocator_type& __a = allocator_type())
D_set.h70 typedef typename _Alloc_traits<_KeyStorageType, _Alloc>::allocator_type _StorageTypeAlloc;
110 typedef typename _Priv_Rep_type::allocator_type allocator_type;
131 const allocator_type& __a = allocator_type())
160 const allocator_type& __a _STLP_ALLOCATOR_TYPE_DFL)
177 const _Compare& __comp, const allocator_type& __a = allocator_type())
188 const _Compare& __comp, const allocator_type& __a = allocator_type())
208 allocator_type get_allocator() const
317 typedef typename _Alloc_traits<_KeyStorageType, _Alloc>::allocator_type _StorageTypeAlloc;
357 typedef typename _Priv_Rep_type::allocator_type allocator_type;
378 const allocator_type& __a = allocator_type())
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector.bool/
Dconstruct_default.pass.cpp28 assert(c.get_allocator() == typename C::allocator_type()); in test0()
33 assert(c1.get_allocator() == typename C::allocator_type()); in test0()
39 test1(const typename C::allocator_type& a) in test1()
Dconstruct_size.pass.cpp23 test2(typename C::size_type n, typename C::allocator_type const& a = typename C::allocator_type ()) in test2()
44 assert(c.get_allocator() == typename C::allocator_type()); in test1()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ext/
Dhash_set31 typedef Alloc allocator_type;
34 typedef typename allocator_traits<allocator_type>::pointer pointer;
35 typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
36 typedef typename allocator_traits<allocator_type>::size_type size_type;
37 typedef typename allocator_traits<allocator_type>::difference_type difference_type;
44 const allocator_type& a = allocator_type());
49 const allocator_type& a = allocator_type());
54 allocator_type get_allocator() const;
117 typedef Alloc allocator_type;
120 typedef typename allocator_traits<allocator_type>::pointer pointer;
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.nonmembers/string.io/
Dstream_insert.pass.cpp58 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
66 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
75 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()
83 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out; in main()

12345