Searched refs:allocator_type (Results 1 - 25 of 63) sorted by relevance

123

/external/clang/test/SemaTemplate/
H A Dexception-spec-crash.cpp16 typedef _Allocator allocator_type; typedef in class:basic_string
18 noexcept(is_nothrow_move_constructible<allocator_type>::value);
/external/libcxx/test/std/strings/basic.string/string.cons/
H A Dalloc.pass.cpp29 static_assert((noexcept(S()) == noexcept(typename S::allocator_type())), "" );
36 assert(s.get_allocator() == typename S::allocator_type());
40 static_assert((noexcept(S{typename S::allocator_type{}})), "" );
42 static_assert((noexcept(S(typename S::allocator_type())) == std::is_nothrow_copy_constructible<typename S::allocator_type>::value), "" );
44 S s(typename S::allocator_type(5));
49 assert(s.get_allocator() == typename S::allocator_type(5));
63 static_assert((noexcept(S()) == noexcept(typename S::allocator_type())), "" );
70 assert(s.get_allocator() == typename S::allocator_type());
74 static_assert((noexcept(S{typename S::allocator_type{}})), "" );
[all...]
/external/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/
H A Dctor_queue_alloc.pass.cpp37 typedef test_allocator<int> allocator_type; typedef in struct:test
40 explicit test(const allocator_type& a) : base(a) {}
41 test(const container_type& c, const allocator_type& a) : base(c, a) {}
42 test(const test& q, const allocator_type& a) : base(q, a) {}
43 allocator_type get_allocator() {return this->c.get_allocator();}
H A Dctor_rcontainer_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef in struct:test
43 explicit test(const allocator_type& a) : base(a) {}
44 test(const container_type& c, const allocator_type& a) : base(c, a) {}
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {}
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {}
47 allocator_type get_allocator() {return this->c.get_allocator();}
H A Dctor_rqueue_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef in struct:test
43 explicit test(const allocator_type& a) : base(a) {}
44 test(const container_type& c, const allocator_type& a) : base(c, a) {}
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {}
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {}
47 allocator_type get_allocator() {return this->c.get_allocator();}
/external/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/
H A Dctor_copy_alloc.pass.cpp37 typedef test_allocator<int> allocator_type; typedef in struct:test
40 explicit test(const allocator_type& a) : base(a) {}
41 test(const container_type& c, const allocator_type& a) : base(c, a) {}
42 test(const test& q, const allocator_type& a) : base(q, a) {}
43 allocator_type get_allocator() {return this->c.get_allocator();}
H A Dctor_rcontainer_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef in struct:test
43 explicit test(const allocator_type& a) : base(a) {}
44 test(const container_type& c, const allocator_type& a) : base(c, a) {}
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {}
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {}
47 allocator_type get_allocator() {return this->c.get_allocator();}
H A Dctor_rqueue_alloc.pass.cpp40 typedef test_allocator<MoveOnly> allocator_type; typedef in struct:test
43 explicit test(const allocator_type& a) : base(a) {}
44 test(const container_type& c, const allocator_type& a) : base(c, a) {}
45 test(container_type&& c, const allocator_type& a) : base(std::move(c), a) {}
46 test(test&& q, const allocator_type& a) : base(std::move(q), a) {}
47 allocator_type get_allocator() {return this->c.get_allocator();}
/external/libcxx/test/std/containers/sequences/vector.bool/
H A Dconstruct_default.pass.cpp29 static_assert((noexcept(C()) == noexcept(typename C::allocator_type())), "" );
34 assert(c.get_allocator() == typename C::allocator_type());
39 assert(c1.get_allocator() == typename C::allocator_type());
45 test1(const typename C::allocator_type& a)
48 static_assert((noexcept(C{typename C::allocator_type{}})), "" );
50 static_assert((noexcept(C(typename C::allocator_type())) == std::is_nothrow_copy_constructible<typename C::allocator_type>::value), "" );
H A Dconstruct_size.pass.cpp23 test2(typename C::size_type n, typename C::allocator_type const& a = typename C::allocator_type ())
44 assert(c.get_allocator() == typename C::allocator_type());
H A Dconstruct_size_value_alloc.pass.cpp13 // vector(size_type n, const value_type& x, const allocator_type& a);
23 const typename C::allocator_type& a)
/external/libcxx/test/std/utilities/memory/allocator.traits/
H A Dallocator_type.pass.cpp15 // typedef Alloc allocator_type;
30 static_assert((std::is_same<std::allocator_traits<A<char> >::allocator_type, A<char> >::value), "");
/external/clang/test/SemaCXX/
H A DPR9908.cpp13 typedef Alloc allocator_type; typedef in struct:allocator_traits
15 __allocator_traits_rebind<allocator_type, T>::type;
/external/libcxx/test/std/containers/sequences/vector/vector.cons/
H A Dconstruct_default.pass.cpp32 static_assert((noexcept(C()) == noexcept(typename C::allocator_type())), "" );
37 assert(c.get_allocator() == typename C::allocator_type());
43 assert(c1.get_allocator() == typename C::allocator_type());
50 test1(const typename C::allocator_type& a)
53 static_assert((noexcept(C{typename C::allocator_type{}})), "" );
55 static_assert((noexcept(C(typename C::allocator_type())) == std::is_nothrow_copy_constructible<typename C::allocator_type>::value), "" );
H A Dconstruct_size.pass.cpp24 test2(typename C::size_type n, typename C::allocator_type const& a = typename C::allocator_type ())
46 assert(c.get_allocator() == typename C::allocator_type());
/external/clang/test/CodeGenCXX/
H A Dlpad-linetable.cpp30 typedef _Alloc allocator_type; typedef in struct:std::_Vector_base
31 _Vector_base(const allocator_type& __a)
45 typedef _Alloc allocator_type; typedef in class:std::vector
46 vector(const allocator_type& __a = allocator_type()) argument
/external/clang/test/CXX/except/except.spec/
H A Dcanonical.cpp22 typedef _Allocator allocator_type; typedef in class:std::basic_string
25 noexcept(_is_nothrow_constructible<allocator_type>::value);
48 basic_string<T, _Traits, _Allocator>::basic_string() noexcept(_is_nothrow_constructible<allocator_type>::value) {}
/external/eigen/Eigen/src/StlSupport/
H A DStdDeque.h39 typedef typename deque_base::allocator_type allocator_type; \
42 explicit deque(const allocator_type& a = allocator_type()) : deque_base(a) {} \
44 deque(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) : deque_base(first, last, a) {} \
63 typedef typename deque_base::allocator_type allocator_type; \
67 explicit deque(const allocator_type& a = allocator_type())
[all...]
H A DStdList.h38 typedef typename list_base::allocator_type allocator_type; \
41 explicit list(const allocator_type& a = allocator_type()) : list_base(a) {} \
43 list(InputIterator first, InputIterator last, const allocator_type& a = allocator_type()) : list_base(first, last, a) {} \
63 typedef typename list_base::allocator_type allocator_type; \
67 explicit list(const allocator_type& a = allocator_type())
[all...]
H A 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()) : vector_base(first, last, a) {} \
52 typedef typename vector_base::allocator_type allocator_type; \
56 explicit vector(const allocator_type& a = allocator_type())
[all...]
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
H A Dconstruct.pass.cpp29 typedef A1<B> allocator_type; typedef in struct:B
31 explicit B(std::allocator_arg_t, const allocator_type& a, int i)
45 typedef std::scoped_allocator_adaptor<A2<C>> allocator_type; typedef in struct:C
47 explicit C(std::allocator_arg_t, const allocator_type& a, int i)
61 typedef std::scoped_allocator_adaptor<A2<D>> allocator_type; typedef in struct:D
63 explicit D(int i, int j, const allocator_type& a)
78 typedef std::scoped_allocator_adaptor<A1<E>> allocator_type; typedef in struct:E
80 explicit E(int i, int j, const allocator_type& a)
95 typedef std::scoped_allocator_adaptor<A2<F>> allocator_type; typedef in struct:F
103 explicit F(int i, int j, const allocator_type
[all...]
/external/libcxx/test/std/strings/basic.string/string.capacity/
H A Dcapacity.pass.cpp24 S::allocator_type::throw_after = 0;
35 S::allocator_type::throw_after = INT_MAX;
/external/libcxx/test/std/utilities/memory/allocator.uses/allocator.uses.trait/
H A Duses_allocator.pass.cpp23 typedef int allocator_type; typedef in struct:B
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string.io/
H A Dstream_insert.pass.cpp58 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out;
66 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out;
75 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out;
83 std::basic_ostringstream<S::value_type, S::traits_type, S::allocator_type> out;
/external/libcxx/test/std/containers/sequences/list/
H A Dtypes.pass.cpp19 // typedef Alloc allocator_type;
20 // typedef typename allocator_type::reference reference;
21 // typedef typename allocator_type::const_reference const_reference;
22 // typedef typename allocator_type::pointer pointer;
23 // typedef typename allocator_type::const_pointer const_pointer;
35 static_assert((std::is_same<std::list<int>::allocator_type, std::allocator<int> >::value), "");
42 static_assert((std::is_same<std::list<int, min_allocator<int>>::allocator_type, min_allocator<int> >::value), "");

Completed in 825 milliseconds

123