Searched refs:swap (Results 1 - 25 of 931) 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/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/eigen/test/eigen2/
H A Deigen2_swap.cpp25 template<typename MatrixType> void swap(const MatrixType& m) function
44 m1.swap(m2);
51 m1.swap(m3);
58 m1.swap(m2.block(0,0,rows,cols));
65 m1.transpose().swap(m3.transpose());
72 VERIFY_RAISES_ASSERT(m1.swap(m1.row(0)));
74 VERIFY_RAISES_ASSERT(m1.row(0).swap(m1));
79 CALL_SUBTEST_1( swap(Matrix3f()) ); // fixed size, no vectorization
80 CALL_SUBTEST_1( swap(Matrix4d()) ); // fixed size, possible vectorization
81 CALL_SUBTEST_1( swap(MatrixX
[all...]
/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/optional/optional.object/optional.object.swap/
H A Dswap.pass.cpp12 // void swap(optional&)
14 // noexcept(swap(declval<T&>(), declval<T&>())));
49 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} function in class:Y
62 friend void swap(Z& x, Z& y) {throw 6;} function in class:Z
74 static_assert(noexcept(opt1.swap(opt2)) == true, "");
77 opt1.swap(opt2);
84 static_assert(noexcept(opt1.swap(opt2)) == true, "");
88 opt1.swap(opt2);
96 static_assert(noexcept(opt1.swap(opt
[all...]
/external/libcxx/test/std/experimental/optional/optional.specalg/
H A Dswap.pass.cpp12 // template <class T> void swap(optional<T>& x, optional<T>& y)
13 // noexcept(noexcept(x.swap(y)));
48 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} function in class:Y
61 friend void swap(Z& x, Z& y) {throw 6;} function in class:Z
73 static_assert(noexcept(swap(opt1, opt2)) == true, "");
76 swap(opt1, opt2);
83 static_assert(noexcept(swap(opt1, opt2)) == true, "");
87 swap(opt1, opt2);
95 static_assert(noexcept(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)
29 static_assert(noexcept(swap(c1, c2)), "");
/external/libcxx/test/std/containers/container.adaptors/queue/queue.special/
H A Dswap_noexcept.pass.cpp12 // void swap(queue& c)
28 static_assert(noexcept(swap(c1, c2)), "");
/external/libcxx/test/std/containers/container.adaptors/stack/stack.special/
H A Dswap_noexcept.pass.cpp12 // void swap(stack& c)
28 static_assert(noexcept(swap(c1, c2)), "");
/external/eigen/test/
H A Dswap.cpp25 template<typename MatrixType> void swap(const MatrixType& m) function
44 m1.swap(m2);
51 m1.swap(m3);
58 m1.swap(m2.block(0,0,rows,cols));
65 m1.transpose().swap(m3.transpose());
72 VERIFY_RAISES_ASSERT(m1.swap(m1.row(0)));
74 VERIFY_RAISES_ASSERT(m1.row(0).swap(m1));
79 CALL_SUBTEST_1( swap(Matrix3f()) ); // fixed size, no vectorization
80 CALL_SUBTEST_2( swap(Matrix4d()) ); // fixed size, possible vectorization
81 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.cpp16 // void swap(shared_lock& u) noexcept;
38 lk1.swap(lk2);
43 static_assert(noexcept(lk1.swap(lk2)), "member swap must be noexcept");
H A Dnonmember_swap.pass.cpp17 // void swap(shared_lock<Mutex>& x, shared_lock<Mutex>& y) noexcept;
39 swap(lk1, lk2);
44 static_assert(noexcept(swap(lk1, lk2)), "non-member swap must be noexcept");
/external/libcxx/test/std/utilities/utility/utility.swap/
H A Dswap.pass.cpp15 // swap(T& a, T& b);
28 std::swap(i, j);
40 std::swap(i, j);
/external/slf4j/slf4j-api/src/test/java/org/slf4j/helpers/
H A DBubbleSort.java40 swap(a, j, j + 1);
46 static void swap(int[] a, int i, int j) { method in class:BubbleSort
/external/libcxx/test/std/containers/sequences/deque/deque.special/
H A Dswap_noexcept.pass.cpp12 // void swap(deque& c)
16 // In C++17, the standard says that swap shall have:
58 static_assert(noexcept(swap(c1, c2)), "");
63 static_assert(noexcept(swap(c1, c2)), "");
68 static_assert(noexcept(swap(c1, c2)), "");
75 static_assert( noexcept(swap(c1, c2)), "");
77 static_assert(!noexcept(swap(c1, c2)), "");
84 // if the allocators are always equal, then the swap can be noexcept
85 static_assert( noexcept(swap(c1, c2)), "");
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/
H A Dswap_noexcept.pass.cpp12 // void swap(forward_list& c)
16 // In C++17, the standard says that swap shall have:
58 static_assert(noexcept(swap(c1, c2)), "");
63 static_assert(noexcept(swap(c1, c2)), "");
68 static_assert(noexcept(swap(c1, c2)), "");
75 static_assert( noexcept(swap(c1, c2)), "");
77 static_assert(!noexcept(swap(c1, c2)), "");
84 // if the allocators are always equal, then the swap can be noexcept
85 static_assert( noexcept(swap(c1, c2)), "");
/external/libcxx/test/std/containers/sequences/list/list.special/
H A Dswap_noexcept.pass.cpp12 // void swap(list& c)
16 // In C++17, the standard says that swap shall have:
58 static_assert(noexcept(swap(c1, c2)), "");
63 static_assert(noexcept(swap(c1, c2)), "");
68 static_assert(noexcept(swap(c1, c2)), "");
75 static_assert( noexcept(swap(c1, c2)), "");
77 static_assert(!noexcept(swap(c1, c2)), "");
84 // if the allocators are always equal, then the swap can be noexcept
85 static_assert( noexcept(swap(c1, c2)), "");
/external/libcxx/test/std/containers/sequences/vector/vector.special/
H A Dswap_noexcept.pass.cpp12 // void swap(vector& c)
16 // In C++17, the standard says that swap shall have:
59 static_assert(noexcept(swap(c1, c2)), "");
64 static_assert(noexcept(swap(c1, c2)), "");
69 static_assert(noexcept(swap(c1, c2)), "");
76 static_assert( noexcept(swap(c1, c2)), "");
78 static_assert(!noexcept(swap(c1, c2)), "");
85 // if the allocators are always equal, then the swap can be noexcept
86 static_assert( noexcept(swap(c1, c2)), "");
/external/libcxx/test/std/containers/sequences/vector.bool/
H A Dswap_noexcept.pass.cpp12 // void swap(vector& c)
16 // In C++17, the standard says that swap shall have:
58 static_assert(noexcept(swap(c1, c2)), "");
63 static_assert(noexcept(swap(c1, c2)), "");
68 static_assert(noexcept(swap(c1, c2)), "");
75 static_assert( noexcept(swap(c1, c2)), "");
77 static_assert(!noexcept(swap(c1, c2)), "");
84 // if the allocators are always equal, then the swap can be noexcept
85 static_assert( noexcept(swap(c1, c2)), "");
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/
H A Dmember_swap.pass.cpp15 // void swap(basic_stringbuf& rhs);
25 buf.swap(buf1);
32 buf.swap(buf1);
39 buf.swap(buf1);
46 buf.swap(buf1);
53 buf.swap(buf1);
60 buf.swap(buf1);
H A Dnonmember_swap.pass.cpp16 // void swap(basic_stringbuf<charT, traits, Allocator>& x,
27 swap(buf, buf1);
34 swap(buf, buf1);
41 swap(buf, buf1);
48 swap(buf, buf1);
55 swap(buf, buf1);
62 swap(buf, buf1);
/external/libcxx/test/std/containers/associative/map/map.special/
H A Dswap_noexcept.pass.cpp12 // void swap(map& c)
16 // In C++17, the standard says that swap shall have:
18 // noexcept(swap(declval<Compare&>(), declval<Compare&>())));
53 void swap(some_comp2<T>&, some_comp2<T>&) noexcept {}
100 static_assert(noexcept(swap(c1, c2)), "");
105 static_assert(noexcept(swap(c1, c2)), "");
110 static_assert(noexcept(swap(c1, c2)), "");
115 static_assert(!noexcept(swap(c1, c2)), "");
119 { // POCS allocator, throwable swap for comp
122 static_assert(!noexcept(swap(c
[all...]

Completed in 633 milliseconds

1234567891011>>