Searched refs:throws_on_move (Results 1 – 8 of 8) sorted by relevance
301 struct throws_on_move struct306 explicit throws_on_move(int val = 0) : value(val) { ++count; } in value() argument308 throws_on_move(throws_on_move const & other) { in throws_on_move() function313 throws_on_move(throws_on_move &&) { in throws_on_move() function317 ~throws_on_move() { in ~throws_on_move() argument321 throws_on_move& operator=(throws_on_move const&) = delete;322 throws_on_move& operator=(throws_on_move &&) = delete; argument325 int throws_on_move::count = 0;
354 struct throws_on_move struct362 explicit throws_on_move(int val = 0) : value(val) { ++count; } in value() argument363 explicit throws_on_move(int, int val, int) : value(val) { ++count; } in throws_on_move() argument364 throws_on_move(throws_on_move const & other) { in throws_on_move() argument369 throws_on_move(throws_on_move &&) { in throws_on_move() function373 ~throws_on_move() { in ~throws_on_move() argument377 throws_on_move& operator=(throws_on_move const&) = delete;378 throws_on_move& operator=(throws_on_move &&) = delete; argument381 int throws_on_move::count = 0;382 int throws_on_move::copied = 0;[all …]
42 assert(throws_on_move::count == 0); in test_move_does_not_throw()44 throws_on_move v(42); in test_move_does_not_throw()46 assert(throws_on_move::count == 2); in test_move_does_not_throw()52 assertContains<throws_on_move>(a2, 42); in test_move_does_not_throw()56 assert(throws_on_move::count == 1); in test_move_does_not_throw()59 assert(throws_on_move::count == 0); in test_move_does_not_throw()
67 assert(throws_on_move::count == 0); in test_move_value_throws()69 throws_on_move v; in test_move_value_throws()70 assert(throws_on_move::count == 1); in test_move_value_throws()79 assert(throws_on_move::count == 1); in test_move_value_throws()81 assert(throws_on_move::count == 0); in test_move_value_throws()
196 test_in_place_type<throws_on_move>(); in main()
140 test_make_any_type<throws_on_move>(); in main()
215 test_assign_throws<throws_on_move, /* Move = */ true>(); in main()
284 test_emplace_type<throws_on_move>(); in main()