Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 25 of 3849) sorted by relevance

12345678910>>...154

/external/clang/www/
Dlibstdc++4.4-clang0x.patch16 - swap(forward_list&& __list)
17 + swap(forward_list& __list)
18 { _Node_base::swap(this->_M_impl._M_head, __list._M_impl._M_head); }
68 - swap(__shared_ptr<_Tp, _Lp>&& __other) // never throws
69 + swap(__shared_ptr<_Tp, _Lp>& __other) // never throws
71 std::swap(_M_ptr, __other._M_ptr);
74 swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b)
75 { __a.swap(__b); }
79 - swap(__shared_ptr<_Tp, _Lp>&& __a, __shared_ptr<_Tp, _Lp>& __b)
80 - { __a.swap(__b); }
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/optional/optional.object/optional.object.swap/
Dswap.pass.cpp50 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} in swap() function
63 friend void swap(Z&, Z&) {TEST_THROW(6);} in swap() function
73 friend TEST_CONSTEXPR_CXX20 void swap(W& x, W& y) noexcept {std::swap(x.i_, y.i_);} in swap() function
82 static_assert(noexcept(opt1.swap(opt2)) == true); in check_swap()
85 opt1.swap(opt2); in check_swap()
92 static_assert(noexcept(opt1.swap(opt2)) == true); in check_swap()
96 opt1.swap(opt2); in check_swap()
104 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in check_swap()
108 opt1.swap(opt2); in check_swap()
116 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in check_swap()
[all …]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.swap/
Dswap.pass.cpp51 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} in swap() function
64 friend void swap(Z&, Z&) {TEST_THROW(6);} in swap() function
73 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
76 opt1.swap(opt2); in main()
83 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
87 opt1.swap(opt2); in main()
95 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
99 opt1.swap(opt2); in main()
107 static_assert(noexcept(opt1.swap(opt2)) == true, ""); in main()
112 opt1.swap(opt2); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/optional/optional.specalg/
Dswap.pass.cpp49 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} in swap() function
62 friend void swap(Z&, Z&) { TEST_THROW(6);} in swap() function
69 void swap(NonSwappable&, NonSwappable&) = delete;
102 std::swap(L, R); in test_swap_sfinae()
118 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
121 swap(opt1, opt2); in main()
128 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
132 swap(opt1, opt2); in main()
140 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
144 swap(opt1, opt2); in main()
[all …]
/external/libcxx/test/std/utilities/optional/optional.specalg/
Dswap.pass.cpp50 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} in swap() function
63 friend void swap(Z&, Z&) { TEST_THROW(6);} in swap() function
70 void swap(NonSwappable&, NonSwappable&) = delete;
103 std::swap(L, R); in test_swap_sfinae()
119 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
122 swap(opt1, opt2); in main()
129 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
133 swap(opt1, opt2); in main()
141 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
145 swap(opt1, opt2); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/concepts/concepts.lang/concept.swappable/
Dswappable_with.compile.pass.cpp260 friend void swap(s1&, no_common_reference_with_s1&);
261 friend void swap(no_common_reference_with_s1&, s1&);
266 friend void swap(s1&, one_way_swappable_with_s1&);
273 friend void swap(one_way_swappable_with_s1_other_way&, s1&);
283 friend void swap(s1&, can_swap_with_s1_but_not_swappable&);
284 friend void swap(can_swap_with_s1_but_not_swappable&, s1&);
295 friend void swap(s1&, swappable_with_s1&);
296 friend void swap(swappable_with_s1&, s1&);
311 friend void swap(s1 const&, swappable_with_const_s1_but_not_swappable const&);
312 friend void swap(swappable_with_const_s1_but_not_swappable const&, s1 const&);
[all …]
Dswappable.pass.cpp43 std::ranges::swap(std::forward<T>(x), std::forward<U>(y)); in check_swap_21()
54 std::ranges::swap(x, y); in check_swap_22()
64 std::ranges::swap(x, y); in check_swap_23()
72 ASSERT_NOEXCEPT(std::ranges::swap(x, y)); in check_lvalue_adl_swappable()
79 ASSERT_NOEXCEPT(std::ranges::swap(rvalue_adl_swappable(0), rvalue_adl_swappable(1))); in check_rvalue_adl_swappable()
87 ASSERT_NOEXCEPT(std::ranges::swap(x, lvalue_rvalue_adl_swappable(1))); in check_lvalue_rvalue_adl_swappable()
95 ASSERT_NOEXCEPT(std::ranges::swap(rvalue_lvalue_adl_swappable(1), x)); in check_rvalue_lvalue_adl_swappable()
104 ASSERT_NOT_NOEXCEPT(std::ranges::swap(x, y)); in check_throwable_swappable()
113 ASSERT_NOEXCEPT(std::ranges::swap(x, y)); in check_non_move_constructible_adl_swappable()
122 ASSERT_NOEXCEPT(std::ranges::swap(x, y)); in check_non_move_assignable_adl_swappable()
[all …]
/external/clang/test/SemaCXX/
Dlibstdcxx_pair_swap_hack.cpp25 template<typename T> void swap(T &, T &);
26 template<typename T> void do_swap(T &a, T &b) noexcept(noexcept(swap(a, b))) { in do_swap()
27 swap(a, b); in do_swap()
32 void swap(CLASS &other) noexcept(noexcept(do_swap(member, other.member)));
36 void swap(CLASS &other) noexcept(noexcept(swap(member, other.member)));
55 void swap(X &, X &) noexcept;
59 static_assert(noexcept(px.swap(px)), "");
60 static_assert(!noexcept(pi.swap(pi)), "");
63 template<typename T> void swap(T &, T &);
66 …void swap(CLASS &other) noexcept(noexcept(swap(*this, other))); // expected-error {{too many argum…
[all …]
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/internal/
DMemory.java128 public static int peekInt(long address, boolean swap) { in peekInt() argument
130 if (swap) { in peekInt()
137 public static long peekLong(long address, boolean swap) { in peekLong() argument
139 if (swap) { in peekLong()
147 public static short peekShort(long address, boolean swap) { in peekShort() argument
149 if (swap) { in peekShort()
159 …ic native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap); in peekCharArray() argument
161 …ive void peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCount, boolean swap); in peekDoubleArray() argument
163 …native void peekFloatArray(long address, float[] dst, int dstOffset, int floatCount, boolean swap); in peekFloatArray() argument
165 …tatic native void peekIntArray(long address, int[] dst, int dstOffset, int intCount, boolean swap); in peekIntArray() argument
[all …]
/external/perfetto/test/trace_processor/diff_tests/memory/
Dandroid_mem_counters.out17 swap {
46 swap {
75 swap {
104 swap {
133 swap {
162 swap {
191 swap {
220 swap {
249 swap {
278 swap {
[all …]
/external/marisa-trie/lib/marisa/
Dkeyset.cc86 Keyset().swap(*this); in clear()
89 void Keyset::swap(Keyset &rhs) { in swap() function in marisa::Keyset
90 base_blocks_.swap(rhs.base_blocks_); in swap()
91 marisa::swap(base_blocks_size_, rhs.base_blocks_size_); in swap()
92 marisa::swap(base_blocks_capacity_, rhs.base_blocks_capacity_); in swap()
93 extra_blocks_.swap(rhs.extra_blocks_); in swap()
94 marisa::swap(extra_blocks_size_, rhs.extra_blocks_size_); in swap()
95 marisa::swap(extra_blocks_capacity_, rhs.extra_blocks_capacity_); in swap()
96 key_blocks_.swap(rhs.key_blocks_); in swap()
97 marisa::swap(key_blocks_size_, rhs.key_blocks_size_); in swap()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/variant/variant.variant/variant.swap/
Dswap.pass.cpp29 void swap(NotSwappable &, NotSwappable &) = delete;
42 void swap(NotCopyableWithSwap &, NotCopyableWithSwap) {} in swap() function
55 void swap(NotMoveAssignableWithSwap &, NotMoveAssignableWithSwap &) noexcept {} in swap() function
112 void swap(NothrowTypeImp<NT_Copy, NT_Move, NT_CopyAssign, NT_MoveAssign, in swap() function
190 v1.swap(v2); in test_swap_valueless_by_exception()
196 swap(v1, v2); in test_swap_valueless_by_exception()
207 v1.swap(v2); in test_swap_valueless_by_exception()
211 v2.swap(v1); in test_swap_valueless_by_exception()
216 swap(v1, v2); in test_swap_valueless_by_exception()
220 swap(v1, v2); in test_swap_valueless_by_exception()
[all …]
/external/libcxx/test/std/utilities/variant/variant.variant/variant.swap/
Dswap.pass.cpp37 void swap(NotSwappable &, NotSwappable &) = delete;
50 void swap(NotCopyableWithSwap &, NotCopyableWithSwap) {} in swap() function
63 void swap(NotMoveAssignableWithSwap &, NotMoveAssignableWithSwap &) noexcept {} in swap() function
120 void swap(NothrowTypeImp<NT_Copy, NT_Move, NT_CopyAssign, NT_MoveAssign, in swap() function
198 v1.swap(v2); in test_swap_valueless_by_exception()
204 swap(v1, v2); in test_swap_valueless_by_exception()
215 v1.swap(v2); in test_swap_valueless_by_exception()
219 v2.swap(v1); in test_swap_valueless_by_exception()
224 swap(v1, v2); in test_swap_valueless_by_exception()
228 swap(v1, v2); in test_swap_valueless_by_exception()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/tuple/tuple.tuple/tuple.swap/
Dmember_swap_const.pass.cpp23 void swap(SwapThrower&) = delete;
24 void swap(const SwapThrower&) const = delete;
27 void swap(const SwapThrower&, const SwapThrower&) { throw 0.f; } in swap() function
37 t1.swap(t2); in test_noexcept()
38 std::swap(t1, t2); in test_noexcept()
44 std::swap(std::as_const(t1), std::as_const(t2)); in test_noexcept()
55 constexpr void swap(const ConstSwappable& lhs, const ConstSwappable& rhs) { std::swap(lhs.i, rhs.i)… in swap() function
62 t0.swap(t1); in test()
70 t0.swap(t1); in test()
80 t0.swap(t1); in test()
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_noexcept.pass.cpp58 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
81 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
126 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
132 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
137 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
142 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
147 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
153 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
157 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
161 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_noexcept.pass.cpp57 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
80 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
125 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
131 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
136 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
141 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
146 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
152 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
156 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
160 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_noexcept.pass.cpp58 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
81 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
127 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
133 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
138 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
143 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
148 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
154 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
158 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
162 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_noexcept.pass.cpp57 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
80 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
126 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
132 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
137 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
142 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
147 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
153 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
157 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
161 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_noexcept.pass.cpp58 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
81 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
126 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
132 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
137 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
142 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
147 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
153 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
157 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
161 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_noexcept.pass.cpp58 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
81 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
128 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
134 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
139 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
144 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
149 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
155 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
159 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
163 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_noexcept.pass.cpp57 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
80 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
125 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
131 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
136 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
141 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
146 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
152 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
156 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
160 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_noexcept.pass.cpp57 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {} in swap() function
80 void swap(some_hash2<T>&, some_hash2<T>&) noexcept {} in swap() function
127 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
133 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
138 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
143 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
148 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
154 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
158 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
162 static_assert(!noexcept(swap(std::declval<C&>(), std::declval<C&>())), ""); in main()
[all …]
/external/eigen/test/
Dswap.cpp25 template<typename MatrixType> void swap(const MatrixType& m) in swap() function
45 m1.swap(m2); in swap()
57 m1.swap(m3); in swap()
64 m1.swap(m2.block(0,0,rows,cols)); in swap()
71 m1.transpose().swap(m3.transpose()); in swap()
80 VERIFY_RAISES_ASSERT(m1.swap(m1.row(0))); in swap()
82 VERIFY_RAISES_ASSERT(m1.row(0).swap(m1)); in swap()
86 EIGEN_DECLARE_TEST(swap) in EIGEN_DECLARE_TEST() argument
89 CALL_SUBTEST_1( swap(Matrix3f()) ); // fixed size, no vectorization in EIGEN_DECLARE_TEST()
90 CALL_SUBTEST_2( swap(Matrix4d()) ); // fixed size, possible vectorization in EIGEN_DECLARE_TEST()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dcmpxchg-03.ll1 ; Test 32-bit compare and swap.
6 define i32 @f1(i32 %cmp, i32 %swap, i32 *%src) {
10 %pair = cmpxchg i32 *%src, i32 %cmp, i32 %swap seq_cst seq_cst
16 define i32 @f2(i32 %cmp, i32 %swap, i32 *%src) {
21 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
27 define i32 @f3(i32 %cmp, i32 %swap, i32 *%src) {
32 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
38 define i32 @f4(i32 %cmp, i32 %swap, i32 *%src) {
43 %pair = cmpxchg i32 *%ptr, i32 %cmp, i32 %swap seq_cst seq_cst
50 define i32 @f5(i32 %cmp, i32 %swap, i32 *%src) {
[all …]
/external/angle/build/win/
Dreorder-imports.py55 swap = pe.DIRECTORY_ENTRY_IMPORT[0]
63 peimport.struct.OriginalFirstThunk, swap.struct.OriginalFirstThunk = \
64 swap.struct.OriginalFirstThunk, peimport.struct.OriginalFirstThunk
65 peimport.struct.TimeDateStamp, swap.struct.TimeDateStamp = \
66 swap.struct.TimeDateStamp, peimport.struct.TimeDateStamp
67 peimport.struct.ForwarderChain, swap.struct.ForwarderChain = \
68 swap.struct.ForwarderChain, peimport.struct.ForwarderChain
69 peimport.struct.Name, swap.struct.Name = \
70 swap.struct.Name, peimport.struct.Name
71 peimport.struct.FirstThunk, swap.struct.FirstThunk = \
[all …]

12345678910>>...154