| /external/libcxx/test/std/strings/basic.string/string.cons/ |
| D | implicit_deduction_guides.pass.cpp | 52 using TestSizeT = test_allocator<char>::size_type; in main() 72 std::basic_string s(6ull, 'a', test_allocator<char>{}); in main() 73 ASSERT_SAME_TYPE(decltype(s), BStr<char,test_allocator<char>>); in main() 76 std::basic_string w(2ull, L'b', test_allocator<wchar_t>{}); in main() 77 ASSERT_SAME_TYPE(decltype(w), BStr<wchar_t, test_allocator<wchar_t>>); in main() 88 test_allocator<wchar_t>>; in main() 102 test_allocator<wchar_t>>; in main() 104 std::basic_string w(win, (TestSizeT)3, test_allocator<wchar_t>{}); in main() 116 test_allocator<wchar_t>>; in main() 130 test_allocator<wchar_t>>; in main() [all …]
|
| /external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/basic.string/string.cons/ |
| D | implicit_deduction_guides.pass.cpp | 50 using TestSizeT = test_allocator<char>::size_type; in test() 72 std::basic_string s(6ull, 'a', test_allocator<char>{}); in test() 73 ASSERT_SAME_TYPE(decltype(s), BStr<char,test_allocator<char>>); in test() 77 std::basic_string w(2ull, L'b', test_allocator<wchar_t>{}); in test() 78 ASSERT_SAME_TYPE(decltype(w), BStr<wchar_t, test_allocator<wchar_t>>); in test() 91 test_allocator<wchar_t>>; in test() 107 test_allocator<wchar_t>>; in test() 109 std::basic_string w(win, (TestSizeT)3, test_allocator<wchar_t>{}); in test() 123 test_allocator<wchar_t>>; in test() 139 test_allocator<wchar_t>>; in test() [all …]
|
| /external/libcxx/test/std/containers/sequences/vector.bool/ |
| D | move_alloc.pass.cpp | 24 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 25 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 31 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(6)); in main() 34 assert(l2.get_allocator() == test_allocator<bool>(6)); in main() 37 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 38 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 44 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(5)); in main() 47 assert(l2.get_allocator() == test_allocator<bool>(5)); in main()
|
| D | assign_move.pass.cpp | 24 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 25 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 31 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5)); in main() 38 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 39 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 45 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(6)); in main() 49 assert(l2.get_allocator() == test_allocator<bool>(6)); in main()
|
| /external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/vector.bool/ |
| D | move_alloc.pass.cpp | 24 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in tests() 25 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in tests() 31 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(6)); in tests() 34 assert(l2.get_allocator() == test_allocator<bool>(6)); in tests() 37 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in tests() 38 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in tests() 44 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(5)); in tests() 47 assert(l2.get_allocator() == test_allocator<bool>(5)); in tests()
|
| D | assign_move.pass.cpp | 24 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in tests() 25 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in tests() 31 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5)); in tests() 38 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in tests() 39 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in tests() 45 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(6)); in tests() 49 assert(l2.get_allocator() == test_allocator<bool>(6)); in tests()
|
| /external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/list/list.cons/ |
| D | move_alloc.pass.cpp | 25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 32 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main() 35 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 38 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 39 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 45 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() 48 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
|
| D | assign_move.pass.cpp | 25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 32 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() 33 std::list<MoveOnly, test_allocator<MoveOnly> >::iterator it = l.begin(); in main() 41 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 42 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 48 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() 52 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
|
| /external/libcxx/test/std/containers/sequences/list/list.cons/ |
| D | move_alloc.pass.cpp | 25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 32 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main() 35 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 38 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 39 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 45 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() 48 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
|
| D | assign_move.pass.cpp | 25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 32 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() 39 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 40 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 46 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() 50 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
|
| /external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/container.adaptors/priority.queue/priqueue.cons.alloc/ |
| D | ctor_move_alloc.pass.cpp | 37 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 39 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 43 explicit test(const test_allocator<int>& a) : base(a) {} in test() 44 test(const value_compare& compare, const test_allocator<int>& a) in test() 47 const test_allocator<int>& a) : base(compare, container, a) {} in test() 49 const test_allocator<int>& a) : base(compare, std::move(container), a) {} in test() 50 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 51 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 60 make<std::vector<MoveOnly, test_allocator<MoveOnly> > >(5), in main() 61 test_allocator<MoveOnly>(2)); in main() [all …]
|
| D | ctor_copy_alloc.pass.cpp | 32 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 34 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 38 explicit test(const test_allocator<int>& a) : base(a) {} in test() 39 test(const value_compare& compare, const test_allocator<int>& a) in test() 42 const test_allocator<int>& a) : base(compare, container, a) {} in test() 43 test(const test& q, const test_allocator<int>& a) : base(q, a) {} in test() 44 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 52 make<std::vector<int, test_allocator<int> > >(5), in main() 53 test_allocator<int>(2)); in main() 54 test<int> q(qo, test_allocator<int>(6)); in main() [all …]
|
| D | ctor_comp_rcont_alloc.pass.cpp | 33 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 35 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 39 explicit test(const test_allocator<int>& a) : base(a) {} in test() 40 test(const value_compare& compare, const test_allocator<int>& a) in test() 43 const test_allocator<int>& a) : base(compare, container, a) {} in test() 46 const test_allocator<int>& a) : base(compare, std::move(container), a) {} in test() 47 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 49 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 56 typedef std::vector<int, test_allocator<int> > C; in main() 57 test<int> q(std::less<int>(), make<C>(5), test_allocator<int>(3)); in main() [all …]
|
| D | ctor_comp_cont_alloc.pass.cpp | 33 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 35 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 39 explicit test(const test_allocator<int>& a) : base(a) {} in test() 40 test(const value_compare& compare, const test_allocator<int>& a) in test() 43 const test_allocator<int>& a) : base(compare, container, a) {} in test() 46 const test_allocator<int>& a) : base(compare, std::move(container), a) {} in test() 47 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 49 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 56 typedef std::vector<int, test_allocator<int> > C; in main() 58 test<int> q(std::less<int>(), v, test_allocator<int>(3)); in main() [all …]
|
| D | ctor_comp_alloc.pass.cpp | 22 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 24 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 28 explicit test(const test_allocator<int>& a) : base(a) {} in test() 29 test(const value_compare& compare, const test_allocator<int>& a) in test() 32 const test_allocator<int>& a) : base(compare, container, a) {} in test() 35 const test_allocator<int>& a) : base(compare, std::move(container), a) {} in test() 36 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 38 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 45 test<int> q(std::less<int>(), test_allocator<int>(3)); in main() 46 assert(q.c.get_allocator() == test_allocator<int>(3)); in main()
|
| D | ctor_alloc.pass.cpp | 22 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 24 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 28 explicit test(const test_allocator<int>& a) : base(a) {} in test() 29 test(const value_compare& comp, const test_allocator<int>& a) in test() 32 const test_allocator<int>& a) : base(comp, container, a) {} in test() 35 const test_allocator<int>& a) : base(comp, std::move(container), a) {} in test() 36 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 38 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 45 test<int> q((test_allocator<int>(3))); in main() 46 assert(q.c.get_allocator() == test_allocator<int>(3)); in main()
|
| /external/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons.alloc/ |
| D | ctor_move_alloc.pass.cpp | 37 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 39 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 43 explicit test(const test_allocator<int>& a) : base(a) {} in test() 44 test(const value_compare& comp, const test_allocator<int>& a) in test() 47 const test_allocator<int>& a) : base(comp, c, a) {} in test() 49 const test_allocator<int>& a) : base(comp, std::move(c), a) {} in test() 50 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 51 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 60 make<std::vector<MoveOnly, test_allocator<MoveOnly> > >(5), in main() 61 test_allocator<MoveOnly>(2)); in main() [all …]
|
| D | ctor_copy_alloc.pass.cpp | 32 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 34 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 38 explicit test(const test_allocator<int>& a) : base(a) {} in test() 39 test(const value_compare& comp, const test_allocator<int>& a) in test() 42 const test_allocator<int>& a) : base(comp, c, a) {} in test() 43 test(const test& q, const test_allocator<int>& a) : base(q, a) {} in test() 44 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 52 make<std::vector<int, test_allocator<int> > >(5), in main() 53 test_allocator<int>(2)); in main() 54 test<int> q(qo, test_allocator<int>(6)); in main() [all …]
|
| D | ctor_comp_rcont_alloc.pass.cpp | 34 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 36 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 40 explicit test(const test_allocator<int>& a) : base(a) {} in test() 41 test(const value_compare& comp, const test_allocator<int>& a) in test() 44 const test_allocator<int>& a) : base(comp, c, a) {} in test() 47 const test_allocator<int>& a) : base(comp, std::move(c), a) {} in test() 48 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 50 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 57 typedef std::vector<int, test_allocator<int> > C; in main() 58 test<int> q(std::less<int>(), make<C>(5), test_allocator<int>(3)); in main() [all …]
|
| D | ctor_comp_cont_alloc.pass.cpp | 34 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 36 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 40 explicit test(const test_allocator<int>& a) : base(a) {} in test() 41 test(const value_compare& comp, const test_allocator<int>& a) in test() 44 const test_allocator<int>& a) : base(comp, c, a) {} in test() 47 const test_allocator<int>& a) : base(comp, std::move(c), a) {} in test() 48 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 50 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 57 typedef std::vector<int, test_allocator<int> > C; in main() 59 test<int> q(std::less<int>(), v, test_allocator<int>(3)); in main() [all …]
|
| D | ctor_comp_alloc.pass.cpp | 23 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 25 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 29 explicit test(const test_allocator<int>& a) : base(a) {} in test() 30 test(const value_compare& comp, const test_allocator<int>& a) in test() 33 const test_allocator<int>& a) : base(comp, c, a) {} in test() 36 const test_allocator<int>& a) : base(comp, std::move(c), a) {} in test() 37 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 39 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 46 test<int> q(std::less<int>(), test_allocator<int>(3)); in main() 47 assert(q.c.get_allocator() == test_allocator<int>(3)); in main()
|
| D | ctor_alloc.pass.cpp | 23 : public std::priority_queue<T, std::vector<T, test_allocator<T> > > 25 typedef std::priority_queue<T, std::vector<T, test_allocator<T> > > base; 29 explicit test(const test_allocator<int>& a) : base(a) {} in test() 30 test(const value_compare& comp, const test_allocator<int>& a) in test() 33 const test_allocator<int>& a) : base(comp, c, a) {} in test() 36 const test_allocator<int>& a) : base(comp, std::move(c), a) {} in test() 37 test(test&& q, const test_allocator<int>& a) : base(std::move(q), a) {} in test() 39 test_allocator<int> get_allocator() {return c.get_allocator();} in get_allocator() 46 test<int> q((test_allocator<int>(3))); in main() 47 assert(q.c.get_allocator() == test_allocator<int>(3)); in main()
|
| /external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/container.requirements/container.requirements.general/ |
| D | allocator_move.pass.cpp | 67 test<std::vector<int, test_allocator<int> > >(); in main() 68 test<std::vector<bool, test_allocator<bool> > >(); in main() 69 test<std::list<int, test_allocator<int> > >(); in main() 70 test<std::forward_list<int, test_allocator<int> > >(); in main() 78 test<std::deque<int, test_allocator<int> > >(stored_allocators); in main() 81 test<std::set<int, std::less<int>, test_allocator<int> > >(); in main() 82 test<std::multiset<int, std::less<int>, test_allocator<int> > >(); in main() 85 test<std::map<int, int, std::less<int>, test_allocator<KV> > >(); in main() 86 test<std::multimap<int, int, std::less<int>, test_allocator<KV> > >(); in main() 96 test_allocator<int> > >(stored_allocators); in main() [all …]
|
| /external/libcxx/test/std/containers/container.requirements/container.requirements.general/ |
| D | allocator_move.pass.cpp | 67 test<std::vector<int, test_allocator<int> > >(); in main() 68 test<std::vector<bool, test_allocator<bool> > >(); in main() 69 test<std::list<int, test_allocator<int> > >(); in main() 70 test<std::forward_list<int, test_allocator<int> > >(); in main() 78 test<std::deque<int, test_allocator<int> > >(stored_allocators); in main() 81 test<std::set<int, std::less<int>, test_allocator<int> > >(); in main() 82 test<std::multiset<int, std::less<int>, test_allocator<int> > >(); in main() 85 test<std::map<int, int, std::less<int>, test_allocator<KV> > >(); in main() 86 test<std::multimap<int, int, std::less<int>, test_allocator<KV> > >(); in main() 96 test_allocator<int> > >(stored_allocators); in main() [all …]
|
| /external/cronet/buildtools/third_party/libc++/trunk/test/support/ |
| D | test_allocator.h | 64 class test_allocator { 70 friend class test_allocator; variable 83 typedef test_allocator<U> other; 86 TEST_CONSTEXPR test_allocator() TEST_NOEXCEPT = default; 88 …TEST_CONSTEXPR_CXX14 explicit test_allocator(test_allocator_statistics* stats) TEST_NOEXCEPT : sta… in test_allocator() function 93 TEST_CONSTEXPR explicit test_allocator(int data) TEST_NOEXCEPT : data_(data) {} in test_allocator() function 95 …TEST_CONSTEXPR_CXX14 explicit test_allocator(int data, test_allocator_statistics* stats) TEST_NOEX… in test_allocator() function 101 TEST_CONSTEXPR explicit test_allocator(int data, int id) TEST_NOEXCEPT : data_(data), id_(id) {} in test_allocator() function 103 …TEST_CONSTEXPR_CXX14 explicit test_allocator(int data, int id, test_allocator_statistics* stats) T… in test_allocator() function 109 TEST_CONSTEXPR_CXX14 test_allocator(const test_allocator& a) TEST_NOEXCEPT in test_allocator() function [all …]
|