Home
last modified time | relevance | path

Searched refs:swap_called (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.swap/
Dswap.pass.cpp77 static int swap_called; member
78 static void reset() { move_called = move_assign_called = swap_called = 0; } in reset()
113 EnableSwap>::swap_called = 0; member in NothrowTypeImp<NT_Copy, NT_Move, NT_CopyAssign, NT_MoveAssign, NT_Swap, EnableSwap>
121 lhs.swap_called++; in swap()
241 assert(T::swap_called == 1); in test_swap_same_alternative()
245 assert(T::swap_called == 2); in test_swap_same_alternative()
256 assert(T::swap_called == 0); in test_swap_same_alternative()
263 assert(T::swap_called == 0); in test_swap_same_alternative()
281 assert(T::swap_called == 1); in test_swap_same_alternative()
331 assert(T::swap_called == 0); in test_swap_different_alternatives()
[all …]
/external/libcxx/test/std/utilities/variant/variant.variant/variant.swap/
Dswap.pass.cpp80 static int swap_called; member
81 static void reset() { move_called = move_assign_called = swap_called = 0; } in reset()
116 EnableSwap>::swap_called = 0; member in NothrowTypeImp<NT_Copy, NT_Move, NT_CopyAssign, NT_MoveAssign, NT_Swap, EnableSwap>
124 lhs.swap_called++; in swap()
244 assert(T::swap_called == 1); in test_swap_same_alternative()
248 assert(T::swap_called == 2); in test_swap_same_alternative()
259 assert(T::swap_called == 0); in test_swap_same_alternative()
266 assert(T::swap_called == 0); in test_swap_same_alternative()
284 assert(T::swap_called == 1); in test_swap_same_alternative()
334 assert(T::swap_called == 0); in test_swap_different_alternatives()
[all …]
/external/llvm-project/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.class/
Dswap.pass.cpp22 bool swap_called = false; variable
23 void swap(X &, X &) { swap_called = true; } in swap()
30 assert(swap_called); in main()
/external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/
Dswap.pass.cpp22 bool swap_called = false; variable
23 void swap(X &, X &) { swap_called = true; } in swap()
30 assert(swap_called); in main()
/external/llvm-project/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/
Dswap.pass.cpp22 bool swap_called = false; variable
23 void swap(X &, X &) { swap_called = true; } in swap()
30 assert(swap_called); in main()
/external/libcxx/test/std/experimental/utilities/propagate_const/propagate_const.class/
Dswap.pass.cpp22 bool swap_called = false; variable
23 void swap(X &, X &) { swap_called = true; } in swap()
30 assert(swap_called); in main()