Searched refs:swap (Results 1 - 25 of 1089) sorted by relevance

1234567891011>>

/external/clang/test/SemaCXX/
H A Dlibstdcxx_pair_swap_hack.cpp2 // an issue with GCC's <utility> implementation. std::pair::swap
4 // swap. This is invalid, because it ends up calling itself with
25 template<typename T> void swap(T &, T &);
26 template<typename T> void do_swap(T &a, T &b) noexcept(noexcept(swap(a, b))) {
27 swap(a, b);
32 void swap(CLASS &other) noexcept(noexcept(do_swap(member, other.member)));
36 void swap(CLASS &other) noexcept(noexcept(swap(member, other.member)));
42 // void swap(vector &other) noexcept(noexcept(do_swap(member, other.member)));
55 void swap(
[all...]
H A Ddependent-noexcept-unevaluated.cpp14 void swap(T& x, T& y) noexcept(some_trait<T>::value)
26 void swap(array& a) noexcept(noexcept(::swap(declval<T&>(), declval<T&>())));
/external/eigen/failtest/
H A Dswap_2.cpp10 b.swap(ac);
12 b.swap(ac.const_cast_derived());
H A Dswap_1.cpp13 b.swap(ac);
/external/toybox/toys/other/
H A Dmkswap.c1 /* mkswap.c - Format swap device.
13 Sets up a Linux swap area on a device or file.
27 unsigned int pages = (len/pagesize)-1, *swap = (unsigned int *)toybuf; local
28 char *label = (char *)(swap+7), *uuid = (char *)(swap+3);
33 swap[0] = 1;
34 swap[1] = pages;
38 xwrite(fd, swap, 129*sizeof(unsigned int));
/external/libcxx/test/std/experimental/filesystem/class.path/path.nonmember/
H A Dswap.pass.cpp14 // void swap(path& lhs, path& rhs) noexcept;
26 // NOTE: this is tested in path.members/path.modifiers via the member swap.
36 ASSERT_NOEXCEPT(swap(p1, p2));
37 ASSERT_SAME_TYPE(void, decltype(swap(p1, p2)));
43 swap(p1, p2);
46 swap(p1, p2);
/external/libcxx/test/std/experimental/any/any.nonmembers/
H A Dswap.pass.cpp14 // void swap(any &, any &) noexcept
16 // swap(...) just wraps any::swap(...). That function is tested elsewhere.
29 static_assert(noexcept(swap(a, a)), "swap(any&, any&) must be noexcept");
35 swap(a1, a2);
/external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.class/
H A Dswap.pass.cpp14 // template <class T> constexpr void propagate_const::swap(propagate_const<T>& x);
23 void swap(X &, X &) { swap_called = true; } function
29 p1.swap(p2);
/external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/
H A Dswap.pass.cpp14 // template <class T> constexpr void swap(propagate_const<T>& x, propagate_const<T>& y);
23 void swap(X &, X &) { swap_called = true; } function
29 swap(p1, p2);
/external/libcxx/test/std/utilities/any/any.nonmembers/
H A Dswap.pass.cpp14 // void swap(any &, any &) noexcept
16 // swap(...) just wraps any::swap(...). That function is tested elsewhere.
29 static_assert(noexcept(swap(a, a)), "swap(any&, any&) must be noexcept");
35 swap(a1, a2);
/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
H A Dis_swappable.pass.cpp23 // Make the test types non-copyable so that generic std::swap is not valid.
37 void swap(A&, A&) {} function in namespace:MyNS
39 void swap(A&, B&) {} function in namespace:MyNS
40 void swap(B&, A&) {} function in namespace:MyNS
42 void swap(A&, C&) {} // missing swap(C, A) function in namespace:MyNS
43 void swap(D&, C&) {} function in namespace:MyNS
50 void swap(M&&, M&&) {} function in namespace:MyNS
53 friend void swap(DeletedSwap&, DeletedSwap&) = delete;
63 void swap( function in namespace:MyNS2
[all...]
/external/libcxx/test/libcxx/experimental/memory/memory.resource.global/
H A Dnew_delete_resource_lifetime.pass.cpp37 void swap(POSType & L, POSType & R) { function
38 std::swap(L.res, R.res);
39 std::swap(L.ptr, R.ptr);
40 std::swap(L.n, R.n);
52 swap(constructed_after_resources, constructed_before_resources);
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.swap/
H A Dswap.pass.cpp13 // void swap(optional&)
15 // noexcept(swap(declval<T&>(), declval<T&>())));
50 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} function in class:Y
63 friend void swap(Z&, Z&) {TEST_THROW(6);} function in class:Z
68 void swap(ConstSwappable const&, ConstSwappable const&) {} function
75 static_assert(noexcept(opt1.swap(opt2)) == true, "");
78 opt1.swap(opt2);
85 static_assert(noexcept(opt1.swap(opt2)) == true, "");
89 opt1.swap(opt
[all...]
/external/libcxx/test/std/utilities/optional/optional.specalg/
H A Dswap.pass.cpp13 // template <class T> void swap(optional<T>& x, optional<T>& y)
14 // noexcept(noexcept(x.swap(y)));
50 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} function in class:Y
63 friend void swap(Z&, Z&) { TEST_THROW(6);} function in class:Z
70 void swap(NonSwappable&, NonSwappable&) = delete;
103 std::swap(L, R);
119 static_assert(noexcept(swap(opt1, opt2)) == true, "");
122 swap(opt1, opt2);
129 static_assert(noexcept(swap(opt
[all...]
/external/libmojo/mojo/public/cpp/bindings/lib/
H A Dscoped_interface_endpoint_handle.cc18 group_controller_.swap(other.group_controller_);
29 swap(other);
45 void ScopedInterfaceEndpointHandle::swap(ScopedInterfaceEndpointHandle& other) { function in class:mojo::ScopedInterfaceEndpointHandle
46 using std::swap;
47 swap(other.id_, id_);
48 swap(other.is_local_, is_local_);
49 swap(other.group_controller_, group_controller_);
/external/libcxx/test/std/experimental/optional/optional.specalg/
H A Dswap.pass.cpp13 // template <class T> void swap(optional<T>& x, optional<T>& y)
14 // noexcept(noexcept(x.swap(y)));
49 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} function in class:Y
62 friend void swap(Z&, Z&) {TEST_THROW(6);} function in class:Z
70 static_assert(noexcept(swap(opt1, opt2)) == true, "");
73 swap(opt1, opt2);
80 static_assert(noexcept(swap(opt1, opt2)) == true, "");
84 swap(opt1, opt2);
92 static_assert(noexcept(swap(opt
[all...]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.swap/
H A Dswap.pass.cpp13 // void swap(optional&)
51 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} function in class:Y
64 friend void swap(Z&, Z&) {TEST_THROW(6);} function in class:Z
73 static_assert(noexcept(opt1.swap(opt2)) == true, "");
76 opt1.swap(opt2);
83 static_assert(noexcept(opt1.swap(opt2)) == true, "");
87 opt1.swap(opt2);
95 static_assert(noexcept(opt1.swap(opt2)) == true, "");
99 opt1.swap(opt
[all...]
/external/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.special/
H A Dswap_noexcept.pass.cpp12 // void swap(priority_queue& c)
30 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
/external/libcxx/test/std/containers/container.adaptors/queue/queue.special/
H A Dswap_noexcept.pass.cpp12 // void swap(queue& c)
29 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
/external/libcxx/test/std/containers/container.adaptors/stack/stack.special/
H A Dswap_noexcept.pass.cpp12 // void swap(stack& c)
29 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
/external/syslinux/com32/libutil/
H A Dquicksort.c10 static inline void swap(int *x, int *y) function
42 swap(&nums[l], &nums[randint(l, u)]);
47 swap(&nums[++m], &nums[i]);
50 swap(&nums[l], &nums[m]);
/external/eigen/test/
H A Dswap.cpp25 template<typename MatrixType> void swap(const MatrixType& m) function
45 m1.swap(m2);
57 m1.swap(m3);
64 m1.swap(m2.block(0,0,rows,cols));
71 m1.transpose().swap(m3.transpose());
80 VERIFY_RAISES_ASSERT(m1.swap(m1.row(0)));
82 VERIFY_RAISES_ASSERT(m1.row(0).swap(m1));
89 CALL_SUBTEST_1( swap(Matrix3f()) ); // fixed size, no vectorization
90 CALL_SUBTEST_2( swap(Matrix4d()) ); // fixed size, possible vectorization
91 CALL_SUBTEST_3( swap(MatrixX
[all...]
/external/libcxx/test/std/input.output/file.streams/fstreams/ifstream.assign/
H A Dmember_swap.pass.cpp15 // void swap(basic_ifstream& rhs);
25 fs1.swap(fs2);
35 fs1.swap(fs2);
H A Dnonmember_swap.pass.cpp16 // void swap(basic_ifstream<charT, traits>& x, basic_ifstream<charT, traits>& y);
26 swap(fs1, fs2);
36 swap(fs1, fs2);
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
H A Dmember_swap.pass.cpp17 // void swap(shared_lock& u) noexcept;
34 lk1.swap(lk2);
39 static_assert(noexcept(lk1.swap(lk2)), "member swap must be noexcept");

Completed in 639 milliseconds

1234567891011>>