Home
last modified time | relevance | path

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

12345

/external/libcxx/test/std/strings/basic.string/string.cons/
Dalloc.pass.cpp29 static_assert((noexcept(S()) == noexcept(typename S::allocator_type())), "" ); in test()
36 assert(s.get_allocator() == typename S::allocator_type()); in test()
40 static_assert((noexcept(S{typename S::allocator_type{}})), "" ); in test()
42 …tic_assert((noexcept(S(typename S::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test()
44 S s(typename S::allocator_type(5)); in test()
49 assert(s.get_allocator() == typename S::allocator_type(5)); in test()
63 static_assert((noexcept(S()) == noexcept(typename S::allocator_type())), "" ); in test2()
70 assert(s.get_allocator() == typename S::allocator_type()); in test2()
74 static_assert((noexcept(S{typename S::allocator_type{}})), "" ); in test2()
76 …tic_assert((noexcept(S(typename S::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test2()
[all …]
Dstring_view_deduction.pass.cpp50 static_assert(std::is_same_v<S::allocator_type, std::allocator<char>>, ""); in main()
61 static_assert(std::is_same_v<S::allocator_type, std::allocator<char>>, ""); in main()
71 static_assert(std::is_same_v<S::allocator_type, test_allocator<wchar_t>>, ""); in main()
82 static_assert(std::is_same_v<S::allocator_type, min_allocator<char8_t>>, ""); in main()
93 static_assert(std::is_same_v<S::allocator_type, min_allocator<char16_t>>, ""); in main()
103 static_assert(std::is_same_v<S::allocator_type, explicit_allocator<char32_t>>, ""); in main()
/external/eigen/Eigen/src/StlSupport/
DStdList.h30 typedef list_base::allocator_type allocator_type; \
33 explicit list(const allocator_type& a = allocator_type()) : list_base(a) {} \
35 …list(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) : list_b…
55 typedef typename list_base::allocator_type allocator_type; \
59 explicit list(const allocator_type& a = allocator_type()) : list_base(a) {} \
61 list(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) \
DStdDeque.h31 typedef deque_base::allocator_type allocator_type; \
34 explicit deque(const allocator_type& a = allocator_type()) : deque_base(a) {} \
36 …deque(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) : deque…
55 typedef typename deque_base::allocator_type allocator_type; \
59 explicit deque(const allocator_type& a = allocator_type()) : deque_base(a) {} \
61 deque(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) \
DStdVector.h31 typedef vector_base::allocator_type allocator_type; \
34 explicit vector(const allocator_type& a = allocator_type()) : vector_base(a) {} \
36 …vector(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) : vect…
55 typedef typename vector_base::allocator_type allocator_type; \
59 explicit vector(const allocator_type& a = allocator_type()) : vector_base(a) {} \
61 vector(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) \
/external/libcxx/include/
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;
49 is_nothrow_default_constructible<allocator_type>::value &&
53 set(const value_compare& comp, const allocator_type& a);
59 const allocator_type& a);
[all …]
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;
53 is_nothrow_default_constructible<allocator_type>::value);
56 const allocator_type& a = allocator_type());
61 const allocator_type& a = allocator_type());
62 explicit unordered_set(const allocator_type&);
69 is_nothrow_move_constructible<allocator_type>::value);
[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;
54 is_nothrow_default_constructible<allocator_type>::value);
57 const allocator_type& a = allocator_type());
62 const allocator_type& a = allocator_type());
63 explicit unordered_map(const allocator_type&);
70 is_nothrow_move_constructible<allocator_type>::value);
[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 …]
Dmap31 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::pointer pointer;
35 typedef typename allocator_type::const_pointer const_pointer;
36 typedef typename allocator_type::size_type size_type;
37 typedef typename allocator_type::difference_type difference_type;
61 is_nothrow_default_constructible<allocator_type>::value &&
65 map(const key_compare& comp, const allocator_type& a);
71 const key_compare& comp, const allocator_type& a);
[all …]
Dsstream27 typedef Allocator allocator_type;
31 explicit basic_stringbuf(const basic_string<char_type, traits_type, allocator_type>& str,
40 basic_string<char_type, traits_type, allocator_type> str() const;
41 void str(const basic_string<char_type, traits_type, allocator_type>& s);
72 typedef Allocator allocator_type;
76 explicit basic_istringstream(const basic_string<char_type, traits_type,allocator_type>& str,
85 basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const;
86 basic_string<char_type, traits_type, allocator_type> str() const;
87 void str(const basic_string<char_type, traits_type, allocator_type>& s);
108 typedef Allocator allocator_type;
[all …]
/external/libcxx/test/std/containers/sequences/vector.bool/
Dconstruct_default.pass.cpp34 LIBCPP_STATIC_ASSERT((noexcept(C()) == noexcept(typename C::allocator_type())), "" ); in test0()
39 assert(c.get_allocator() == typename C::allocator_type()); in test0()
44 assert(c1.get_allocator() == typename C::allocator_type()); in test0()
50 test1(const typename C::allocator_type& a) in test1()
53 LIBCPP_STATIC_ASSERT((noexcept(C{typename C::allocator_type{}})), "" ); in test1()
55 …TIC_ASSERT((noexcept(C(typename C::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test1()
/external/libcxx/test/std/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()
/external/libcxx/test/std/utilities/memory/allocator.uses/allocator.uses.trait/
Duses_allocator.pass.cpp25 typedef int allocator_type; typedef
29 static int allocator_type; member
33 static int allocator_type() { return 0; } in allocator_type() function
38 typedef int allocator_type; typedef
58 test<false, C, decltype(C::allocator_type)>(); in main()
59 test<false, D, decltype(D::allocator_type)>(); in main()
/external/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/
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& c, const allocator_type& a) : base(c, a) {} in test()
46 test(container_type&& c, const allocator_type& a) : base(std::move(c), 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()
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& c, const allocator_type& a) : base(c, a) {} in test()
46 test(container_type&& c, const allocator_type& a) : base(std::move(c), 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()
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()
/external/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/
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& c, const allocator_type& a) : base(c, a) {} in test()
46 test(container_type&& c, const allocator_type& a) : base(std::move(c), 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()
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& c, const allocator_type& a) : base(c, a) {} in test()
46 test(container_type&& c, const allocator_type& a) : base(std::move(c), 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()
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()
/external/libcxx/test/std/containers/sequences/vector/vector.cons/
Dconstruct_default.pass.cpp32 static_assert((noexcept(C()) == noexcept(typename C::allocator_type())), "" ); in test0()
37 assert(c.get_allocator() == typename C::allocator_type()); in test0()
43 assert(c1.get_allocator() == typename C::allocator_type()); in test0()
50 test1(const typename C::allocator_type& a) in test1()
53 static_assert((noexcept(C{typename C::allocator_type{}})), "" ); in test1()
55 …tic_assert((noexcept(C(typename C::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test1()
Ddeduct.pass.cpp65 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<A>>, ""); in main()
72 static_assert(std::is_same_v<decltype(vec)::allocator_type, test_allocator<A>>, ""); in main()
86 static_assert(std::is_same_v<decltype(vec)::allocator_type, test_allocator<double>>, ""); in main()
95 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<long double>>, ""); in main()
104 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<bool>>, ""); in main()
113 static_assert(std::is_same_v<decltype(vec)::allocator_type, std::allocator<bool>>, ""); in main()
/external/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 …]
Dhash_map31 typedef Alloc allocator_type;
35 typedef typename allocator_traits<allocator_type>::pointer pointer;
36 typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
37 typedef typename allocator_traits<allocator_type>::size_type size_type;
38 typedef typename allocator_traits<allocator_type>::difference_type difference_type;
45 const allocator_type& a = allocator_type());
50 const allocator_type& a = allocator_type());
55 allocator_type get_allocator() const;
120 typedef Alloc allocator_type;
124 typedef typename allocator_traits<allocator_type>::pointer pointer;
[all …]
/external/clang/test/CodeGenCXX/
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()

12345