Home
last modified time | relevance | path

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

/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/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()