/aosp_15_r20/external/sdv/vsomeip/third_party/boost/thread/test/sync/futures/ |
D | test_allocator.hpp | 37 class test_allocator class 42 template <class U> friend class test_allocator; 53 template <class U> struct rebind {typedef test_allocator<U> other;}; 55 test_allocator() throw() : data_(-1) {} in test_allocator() function in test_allocator 56 explicit test_allocator(int i) throw() : data_(i) {} in test_allocator() function in test_allocator 57 test_allocator(const test_allocator& a) throw() in test_allocator() function in test_allocator 59 template <class U> test_allocator(const test_allocator<U>& a) throw() in test_allocator() function in test_allocator 61 ~test_allocator() throw() {data_ = 0;} in ~test_allocator() 83 friend bool operator==(const test_allocator& x, const test_allocator& y) in operator ==() 85 friend bool operator!=(const test_allocator& x, const test_allocator& y) in operator !=() [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/strings/basic.string/string.cons/ |
H A D | implicit_deduction_guides.pass.cpp | 49 using TestSizeT = test_allocator<char>::size_type; in test() 73 std::basic_string s(6ull, 'a', test_allocator<char>{}); in test() 74 ASSERT_SAME_TYPE(decltype(s), BStr<char, test_allocator<char>>); in test() 78 std::basic_string w(2ull, L'b', test_allocator<wchar_t>{}); in test() 79 ASSERT_SAME_TYPE(decltype(w), BStr<wchar_t, test_allocator<wchar_t>>); in test() 90 … using WStr = std::basic_string<wchar_t, constexpr_char_traits<wchar_t>, test_allocator<wchar_t>>; in test() 104 … using WStr = std::basic_string<wchar_t, constexpr_char_traits<wchar_t>, test_allocator<wchar_t>>; in test() 106 std::basic_string w(win, (TestSizeT)3, test_allocator<wchar_t>{}); in test() 118 … using WStr = std::basic_string<wchar_t, constexpr_char_traits<wchar_t>, test_allocator<wchar_t>>; in test() 132 … using WStr = std::basic_string<wchar_t, constexpr_char_traits<wchar_t>, test_allocator<wchar_t>>; in test() [all …]
|
/aosp_15_r20/external/libcxx/test/std/strings/basic.string/string.cons/ |
H A 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 …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/smart_ptr/test/ |
D | shared_ptr_alloc2_test.cpp | 34 template<class T> class test_allocator: public test_allocator_base class 56 typedef test_allocator<U> other; 69 explicit test_allocator( int id = 0 ): test_allocator_base( id ) in test_allocator() function in test_allocator 73 template<class U> test_allocator( test_allocator<U> const & r ): test_allocator_base( r ) in test_allocator() function in test_allocator 77 template<class U> test_allocator & operator=( test_allocator<U> const & r ) in operator =() 124 template<class T> T * test_allocator<T>::last_pointer_ = 0; 125 template<class T> std::size_t test_allocator<T>::last_n_ = 0; 126 template<class T> int test_allocator<T>::last_id_ = 0; 128 template<class T, class U> inline bool operator==( test_allocator<T> const & a1, test_allocator<U> … in operator ==() 133 template<class T, class U> inline bool operator!=( test_allocator<T> const & a1, test_allocator<U> … in operator !=() [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/input.output/syncstream/osyncstream/ |
H A D | types.compile.pass.cpp | 41 …std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator<char>>::char… 42 static_assert(std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator… 44 static_assert(std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator… 46 static_assert(std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator… 48 static_assert(std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator… 51 …std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator<char>>::allo… 52 test_allocator<char>>); 54 …std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator<char>>::stre… 57 …std::same_as<std::basic_osyncstream<char, constexpr_char_traits<char>, test_allocator<char>>::sync… 58 std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<char>>>); [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/support/ |
H A D | test_allocator.h | 66 class test_allocator { 72 friend class test_allocator; variable 85 typedef test_allocator<U> other; 88 TEST_CONSTEXPR test_allocator() TEST_NOEXCEPT = default; 90 …TEST_CONSTEXPR_CXX14 explicit test_allocator(test_allocator_statistics* stats) TEST_NOEXCEPT : sta… in test_allocator() function 95 TEST_CONSTEXPR explicit test_allocator(int data) TEST_NOEXCEPT : data_(data) {} in test_allocator() function 97 …TEST_CONSTEXPR_CXX14 explicit test_allocator(int data, test_allocator_statistics* stats) TEST_NOEX… in test_allocator() function 103 TEST_CONSTEXPR explicit test_allocator(int data, int id) TEST_NOEXCEPT : data_(data), id_(id) {} in test_allocator() function 105 …TEST_CONSTEXPR_CXX14 explicit test_allocator(int data, int id, test_allocator_statistics* stats) T… in test_allocator() function 111 TEST_CONSTEXPR_CXX14 test_allocator(const test_allocator& a) TEST_NOEXCEPT in test_allocator() function [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/input.output/syncstream/syncbuf/ |
H A D | types.compile.pass.cpp | 43 …std::same_as<std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<char>>::char_typ… 44 static_assert(std::same_as<std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<cha… 46 static_assert(std::same_as<std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<cha… 48 static_assert(std::same_as<std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<cha… 50 static_assert(std::same_as<std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<cha… 52 static_assert(std::same_as<std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<cha… 53 test_allocator<char>>); 54 static_assert(std::same_as<std::basic_syncbuf<char, constexpr_char_traits<char>, test_allocator<cha… 64 …std::same_as<std::basic_syncbuf<wchar_t, constexpr_char_traits<wchar_t>, test_allocator<wchar_t>>:… 67 …std::same_as<std::basic_syncbuf<wchar_t, constexpr_char_traits<wchar_t>, test_allocator<wchar_t>>:… [all …]
|
/aosp_15_r20/external/libcxx/test/support/ |
H A D | test_allocator.h | 72 class test_allocator 77 template <class U> friend class test_allocator; variable 88 template <class U> struct rebind {typedef test_allocator<U> other;}; 90 test_allocator() TEST_NOEXCEPT : data_(0), id_(0) {++count;} in test_allocator() function 91 explicit test_allocator(int i, int id = 0) TEST_NOEXCEPT : data_(i), id_(id) in data_() 93 test_allocator(const test_allocator& a) TEST_NOEXCEPT : data_(a.data_), in test_allocator() function 101 test_allocator(test_allocator&& a) TEST_NOEXCEPT : data_(a.data_), in test_allocator() function 112 test_allocator(const test_allocator<U>& a) TEST_NOEXCEPT : data_(a.data_), in test_allocator() function 117 ~test_allocator() TEST_NOEXCEPT { in ~test_allocator() 152 friend bool operator==(const test_allocator& x, const test_allocator& y) [all …]
|
/aosp_15_r20/external/libcxx/test/std/containers/sequences/vector.bool/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/containers/sequences/vector.bool/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/external/libcxx/test/std/containers/sequences/list/list.cons/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/containers/sequences/list/list.cons/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
H A D | alloc_convert_non_const_copy.pass.cpp | 41 const test_allocator<int>&, std::tuple<MutableCopy>&>); 45 … std::allocator_arg_t, const test_allocator<int>&, std::tuple<MutableCopy, MutableCopy>&>); 48 const test_allocator<int>&, std::tuple<MutableCopy>&>); 52 … std::allocator_arg_t, const test_allocator<int>&, std::tuple<MutableCopy, MutableCopy>&>); 59 std::tuple<ConvertibleFrom<MutableCopy>> t2 = {std::allocator_arg, test_allocator<int>{}, t1}; in test() 68 …std::tuple<ConvertibleFrom<MutableCopy>, int> t2 = {std::allocator_arg_t{}, test_allocator<int>{},… in test() 78 …std::tuple<ExplicitConstructibleFrom<MutableCopy>> t2{std::allocator_arg_t{}, test_allocator<int>{… in test() 87 …ExplicitConstructibleFrom<MutableCopy>, int> t2{std::allocator_arg_t{}, test_allocator<int>{}, t1}; in test() 96 …rt(!std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, const test_allocator<int>&, in test() 98 …td::is_constructible_v<std::tuple<int, int, int>, std::allocator_arg_t, const test_allocator<int>&, in test() [all …]
|
H A D | alloc_convert_const_move.pass.cpp | 41 const test_allocator<int>&, const std::tuple<ConstMove>&&>); 45 const test_allocator<int>&, const std::tuple<ConstMove, ConstMove>&&>); 48 const test_allocator<int>&, const std::tuple<ConstMove>&&>); 51 std::allocator_arg_t, const test_allocator<int>&, 59 …std::tuple<ConvertibleFrom<ConstMove>> t2 = {std::allocator_arg, test_allocator<int>{}, std::move(… in test() 68 …std::tuple<ConvertibleFrom<ConstMove>, int> t2 = {std::allocator_arg_t{}, test_allocator<int>{}, s… in test() 78 …std::tuple<ExplicitConstructibleFrom<ConstMove>> t2{std::allocator_arg_t{}, test_allocator<int>{},… in test() 87 …std::tuple<ExplicitConstructibleFrom<ConstMove>, int> t2{std::allocator_arg_t{}, test_allocator<in… in test() 97 …rt(!std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, const test_allocator<int>&, in test() 99 …td::is_constructible_v<std::tuple<int, int, int>, std::allocator_arg_t, const test_allocator<int>&, in test() [all …]
|
/aosp_15_r20/external/libcxx/test/std/containers/container.requirements/container.requirements.general/ |
H A 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 …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/containers/container.requirements/container.requirements.general/ |
H A 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 …]
|
/aosp_15_r20/external/libcxx/test/std/containers/sequences/vector/vector.cons/ |
H A D | move_alloc.pass.cpp | 26 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 27 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 37 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main() 40 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 44 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 45 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 55 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() 58 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/containers/unord/unord.set/unord.set.cnstr/ |
H A D | deduct.pass.cpp | 114 …std::unordered_set s(std::begin(arr), std::end(arr), 42, std::hash<long long>(), test_allocator<in… in main() 116 …cltype(s), std::unordered_set<int, std::hash<long long>, std::equal_to<int>, test_allocator<int>>); in main() 122 std::unordered_set<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 129 std::unordered_set<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 136 std::unordered_set<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 137 std::unordered_set s(source, test_allocator<int>(0, 41)); in main() 144 std::unordered_set<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 145 std::unordered_set s{source, test_allocator<int>(0, 42)}; // braces instead of parens in main() 180 … 1, 2, 1, INT_MAX, 3 }, 42, std::hash<long long>(), std::equal_to<>(), test_allocator<int>(0, 43)); in main() 182 …(decltype(s), std::unordered_set<int, std::hash<long long>, std::equal_to<>, test_allocator<int>>); in main() [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/ |
H A D | deduct.pass.cpp | 114 …multiset s(std::begin(arr), std::end(arr), 42, std::hash<long long>(), test_allocator<int>(0, 40)); in main() 116 …e(s), std::unordered_multiset<int, std::hash<long long>, std::equal_to<int>, test_allocator<int>>); in main() 122 std::unordered_multiset<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 129 std::unordered_multiset<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 136 std::unordered_multiset<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 137 std::unordered_multiset s(source, test_allocator<int>(0, 41)); in main() 144 std::unordered_multiset<int, std::hash<long long>, std::equal_to<>, test_allocator<int>> source; in main() 145 std::unordered_multiset s{source, test_allocator<int>(0, 42)}; // braces instead of parens in main() 180 … 1, 2, 1, INT_MAX, 3 }, 42, std::hash<long long>(), std::equal_to<>(), test_allocator<int>(0, 43)); in main() 182 …type(s), std::unordered_multiset<int, std::hash<long long>, std::equal_to<>, test_allocator<int>>); in main() [all …]
|
/aosp_15_r20/external/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons.alloc/ |
H A 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 …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/containers/container.adaptors/priority.queue/priqueue.cons.alloc/ |
H A 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 …]
|