Searched refs:swap_called (Results 1 – 3 of 3) sorted by relevance
80 static int swap_called; member81 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 …]
22 bool swap_called = false; variable23 void swap(X &, X &) { swap_called = true; } in swap()30 assert(swap_called); in main()