Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.cons/
H A Dalloc.pass.cpp28 static_assert((noexcept(S()) == noexcept(typename S::allocator_type())), "" ); in test()
35 assert(s.get_allocator() == typename S::allocator_type()); in test()
39 static_assert((noexcept(S{typename S::allocator_type{}})), "" ); in test()
41 …tic_assert((noexcept(S(typename S::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test()
43 S s(typename S::allocator_type(5)); in test()
48 assert(s.get_allocator() == typename S::allocator_type(5)); in test()
69 assert(s.get_allocator() == typename S::allocator_type()); in test2()
73 static_assert((noexcept(S{typename S::allocator_type{}})), "" ); in test2()
75 …tic_assert((noexcept(S(typename S::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test2()
77 S s(typename S::allocator_type{}); in test2()
[all …]
H A Dstring_view_deduction.pass.cpp53 static_assert(std::is_same_v<S::allocator_type, std::allocator<char>>, ""); in test()
64 static_assert(std::is_same_v<S::allocator_type, std::allocator<char>>, ""); in test()
75 static_assert(std::is_same_v<S::allocator_type, test_allocator<wchar_t>>, ""); in test()
87 static_assert(std::is_same_v<S::allocator_type, min_allocator<char8_t>>, ""); in test()
98 static_assert(std::is_same_v<S::allocator_type, min_allocator<char16_t>>, ""); in test()
108 static_assert(std::is_same_v<S::allocator_type, explicit_allocator<char32_t>>, ""); in test()
H A Dstring_view_size_size_deduction.pass.cpp57 static_assert(std::is_same_v<S::allocator_type, std::allocator<char>>, ""); in test()
68 static_assert(std::is_same_v<S::allocator_type, std::allocator<char>>, ""); in test()
79 static_assert(std::is_same_v<S::allocator_type, test_allocator<wchar_t>>, ""); in test()
91 static_assert(std::is_same_v<S::allocator_type, min_allocator<char8_t>>, ""); in test()
102 static_assert(std::is_same_v<S::allocator_type, min_allocator<char16_t>>, ""); in test()
112 static_assert(std::is_same_v<S::allocator_type, explicit_allocator<char32_t>>, ""); in test()
/llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
H A Dconstruct.pass.cpp29 typedef A1<B> allocator_type; typedef
45 typedef std::scoped_allocator_adaptor<A2<C>> allocator_type; typedef
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()
118 typedef std::allocator<G> allocator_type; typedef
121 G(allocator_type&) { constructed = true; } in G()
[all …]
/llvm-project-15.0.7/libcxx/include/__memory/
H A Dallocator_traits.h231 using allocator_type = _Alloc;
232 using value_type = typename allocator_type::value_type;
261 static pointer allocate(allocator_type& __a, size_type __n) {
305 __enable_if_t<__has_destroy<allocator_type, _Tp*>::value> >
307 static void destroy(allocator_type& __a, _Tp* __p) {
313 __enable_if_t<!__has_destroy<allocator_type, _Tp*>::value> >
315 static void destroy(allocator_type&, _Tp* __p) {
326 static size_type max_size(const allocator_type& __a) _NOEXCEPT {
334 static size_type max_size(const allocator_type&) _NOEXCEPT {
341 static allocator_type select_on_container_copy_construction(const allocator_type& __a) {
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/allocator.uses/allocator.uses.trait/
H A Duses_allocator.pass.cpp24 typedef int allocator_type; typedef
28 static int allocator_type; member
32 static int allocator_type() { return 0; } in allocator_type() function
37 typedef int allocator_type; typedef
57 test<false, C, decltype(C::allocator_type)>(); in main()
58 test<false, D, decltype(D::allocator_type)>(); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector.bool/
H A Dconstruct_default.pass.cpp32 LIBCPP_STATIC_ASSERT((noexcept(C()) == noexcept(typename C::allocator_type())), "" ); in test0()
37 assert(c.get_allocator() == typename C::allocator_type()); in test0()
42 assert(c1.get_allocator() == typename C::allocator_type()); in test0()
47 TEST_CONSTEXPR_CXX20 void test1(const typename C::allocator_type& a) in test1()
50 LIBCPP_STATIC_ASSERT((noexcept(C{typename C::allocator_type{}})), "" ); in test1()
52 …TIC_ASSERT((noexcept(C(typename C::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test1()
/llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/
H A Dctor_rcontainer_alloc.pass.cpp41 typedef test_allocator<MoveOnly> allocator_type; typedef
44 explicit test(const allocator_type& a) : base(a) {} in test()
45 test(const container_type& container, const allocator_type& a) : base(container, a) {} in test()
46 test(container_type&& container, const allocator_type& a) : base(std::move(container), a) {} in test()
47 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
48 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
H A Dctor_rqueue_alloc.pass.cpp41 typedef test_allocator<MoveOnly> allocator_type; typedef
44 explicit test(const allocator_type& a) : base(a) {} in test()
45 test(const container_type& container, const allocator_type& a) : base(container, a) {} in test()
46 test(container_type&& container, const allocator_type& a) : base(std::move(container), a) {} in test()
47 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
48 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
H A 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& container, const allocator_type& a) : base(container, 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()
/llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/
H A Dctor_rcontainer_alloc.pass.cpp41 typedef test_allocator<MoveOnly> allocator_type; typedef
44 explicit test(const allocator_type& a) : base(a) {} in test()
45 test(const container_type& cont, const allocator_type& a) : base(cont, a) {} in test()
46 test(container_type&& cont, const allocator_type& a) : base(std::move(cont), a) {} in test()
47 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
48 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
H A Dctor_rqueue_alloc.pass.cpp41 typedef test_allocator<MoveOnly> allocator_type; typedef
44 explicit test(const allocator_type& a) : base(a) {} in test()
45 test(const container_type& cont, const allocator_type& a) : base(cont, a) {} in test()
46 test(container_type&& cont, const allocator_type& a) : base(std::move(cont), a) {} in test()
47 test(test&& q, const allocator_type& a) : base(std::move(q), a) {} in test()
48 allocator_type get_allocator() {return this->c.get_allocator();} in get_allocator()
H A 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& cont, const allocator_type& a) : base(cont, 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()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.cons/
H A Dconstruct_default.pass.cpp30 static_assert((noexcept(C()) == noexcept(typename C::allocator_type())), "" ); in test0()
35 assert(c.get_allocator() == typename C::allocator_type()); in test0()
41 assert(c1.get_allocator() == typename C::allocator_type()); in test0()
47 TEST_CONSTEXPR_CXX20 void test1(const typename C::allocator_type& a) in test1()
50 static_assert((noexcept(C{typename C::allocator_type{}})), "" ); in test1()
52 …tic_assert((noexcept(C(typename C::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test1()
H A Ddeduct.pass.cpp62 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<A>>, ""); in tests()
69 static_assert(std::is_same_v<decltype(vec)::allocator_type, test_allocator<A>>, ""); in tests()
83 static_assert(std::is_same_v<decltype(vec)::allocator_type, test_allocator<double>>, ""); in tests()
92 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<long double>>, ""); in tests()
101 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<bool>>, ""); in tests()
110 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<bool>>, ""); in tests()
/llvm-project-15.0.7/libcxx/include/
H A Dset58 const allocator_type& a);
64 explicit set(const allocator_type& a);
65 set(const set& s, const allocator_type& a);
66 set(set&& s, const allocator_type& a);
69 const allocator_type& a);
288 explicit multiset(const allocator_type& a);
293 const allocator_type& a);
588 const allocator_type& __a)
623 explicit set(const allocator_type& __a)
645 const allocator_type& __a)
[all …]
H A Dunordered_set55 const allocator_type& a = allocator_type());
60 const allocator_type& a = allocator_type());
72 const allocator_type& a = allocator_type());
269 const allocator_type& a = allocator_type());
274 const allocator_type& a = allocator_type());
286 const allocator_type& a = allocator_type());
563 const allocator_type& __a);
600 const allocator_type& __a);
993 const allocator_type& __a)
1587 const allocator_type& __a)
[all …]
H A Dvector38 explicit vector(const allocator_type&);
41 vector(size_type n, const value_type& value, const allocator_type& = allocator_type());
43 vector(InputIterator first, InputIterator last, const allocator_type& = allocator_type());
163 explicit vector(const allocator_type&);
164 explicit vector(size_type n, const allocator_type& a = allocator_type()); // C++14
165 vector(size_type n, const value_type& value, const allocator_type& = allocator_type());
167 vector(InputIterator first, InputIterator last, const allocator_type& = allocator_type());
824 allocator_type& __alloc() _NOEXCEPT
1568 allocator_type& __a = this->__alloc();
1610 allocator_type& __a = this->__alloc();
[all …]
H A Dunordered_map56 const allocator_type& a = allocator_type());
61 const allocator_type& a = allocator_type());
73 const allocator_type& a = allocator_type());
83 const allocator_type& a)
88 const allocator_type& a)
308 const allocator_type& a = allocator_type());
313 const allocator_type& a = allocator_type());
325 const allocator_type& a = allocator_type());
335 const allocator_type& a)
340 const allocator_type& a)
[all …]
H A Dmap78 explicit map(const allocator_type& a);
79 map(const map& m, const allocator_type& a);
80 map(map&& m, const allocator_type& a);
335 const allocator_type& a);
341 explicit multimap(const allocator_type& a);
346 const allocator_type& a);
685 allocator_type& __na_;
1108 map(map&& __m, const allocator_type& __a);
1148 explicit map(const allocator_type& __a)
1211 allocator_type get_allocator() const _NOEXCEPT {return allocator_type(__tree_.__alloc());}
[all …]
H A Dsstream26 typedef Allocator allocator_type;
41 basic_string<char_type, traits_type, allocator_type> str() const;
73 typedef Allocator allocator_type;
90 basic_string<char_type, traits_type, allocator_type> str() const;
112 typedef Allocator allocator_type;
151 typedef Allocator allocator_type;
213 typedef _Allocator allocator_type;
634 typedef _Allocator allocator_type;
639 basic_stringbuf<char_type, traits_type, allocator_type> __sb_;
714 typedef _Allocator allocator_type;
[all …]
H A D__node_handle21 using allocator_type = see below;
25 using ator_traits = allocator_traits<allocator_type>; // exposition only
29 optional<allocator_type> alloc_; // exposition only
45 allocator_type get_allocator() const;
98 typedef _Alloc allocator_type;
102 optional<allocator_type> __alloc_;
117 allocator_type, _NodeType>::type __node_alloc_type;
127 allocator_type const& __alloc)
169 allocator_type get_allocator() const { return *__alloc_; }
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dlpad-linetable.cpp30 typedef _Alloc allocator_type; typedef
31 _Vector_base(const allocator_type& __a) in _Vector_base()
45 typedef _Alloc allocator_type; typedef in std::vector
46 vector(const allocator_type& __a = allocator_type()) in vector()
/llvm-project-15.0.7/libcxx/include/ext/
H A Dhash_set43 const allocator_type& a = allocator_type());
48 const allocator_type& a = allocator_type());
53 allocator_type get_allocator() const;
129 const allocator_type& a = allocator_type());
134 const allocator_type& a = allocator_type());
139 allocator_type get_allocator() const;
254 const allocator_type& __a);
264 const allocator_type& __a);
268 allocator_type get_allocator() const
489 allocator_type get_allocator() const
[all …]
H A Dhash_map45 const allocator_type& a = allocator_type());
52 const allocator_type& a = allocator_type());
57 allocator_type get_allocator() const;
136 const allocator_type& a = allocator_type());
141 const allocator_type& a = allocator_type());
147 allocator_type get_allocator() const;
325 allocator_type& __na_;
535 allocator_type get_allocator() const
625 const allocator_type& __a)
807 allocator_type get_allocator() const
[all …]

12345