Home
last modified time | relevance | path

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

1234

/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 …]
/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/test/std/containers/sequences/vector.bool/
Dconstruct_default.pass.cpp29 static_assert((noexcept(C()) == noexcept(typename C::allocator_type())), "" ); in test0()
34 assert(c.get_allocator() == typename C::allocator_type()); in test0()
39 assert(c1.get_allocator() == typename C::allocator_type()); in test0()
45 test1(const typename C::allocator_type& a) in test1()
48 static_assert((noexcept(C{typename C::allocator_type{}})), "" ); in test1()
50 …tic_assert((noexcept(C(typename C::allocator_type())) == std::is_nothrow_copy_constructible<typena… in test1()
/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/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 …]
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 …]
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;
59 is_nothrow_default_constructible<allocator_type>::value &&
63 map(const key_compare& comp, const allocator_type& a);
69 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 …]
Dforward_list25 typedef Allocator allocator_type;
29 typedef typename allocator_traits<allocator_type>::pointer pointer;
30 typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
31 typedef typename allocator_traits<allocator_type>::size_type size_type;
32 typedef typename allocator_traits<allocator_type>::difference_type difference_type;
38 noexcept(is_nothrow_default_constructible<allocator_type>::value);
39 explicit forward_list(const allocator_type& a);
41 explicit forward_list(size_type n, const allocator_type& a); // C++14
43 forward_list(size_type n, const value_type& v, const allocator_type& a);
47 forward_list(InputIterator first, InputIterator last, const allocator_type& a);
[all …]
/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/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()
/external/libcxx/test/std/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()
/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()
/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()
/external/libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
Dconstruct_piecewise_pair.pass.cpp82 typedef ex::memory_resource* allocator_type; typedef
83 allocator_type alloc;
86 CountCopiesAllocV1(std::allocator_arg_t, allocator_type const& a, in CountCopiesAllocV1()
95 typedef ex::memory_resource* allocator_type; typedef
96 allocator_type alloc;
99 CountCopiesAllocV2(CountCopiesAllocV2 const& o, allocator_type const& a) in CountCopiesAllocV2()

1234