Searched refs:MoveThrows (Results 1 – 4 of 4) sorted by relevance
33 struct MoveThrows { struct35 MoveThrows() { ++alive; } in MoveThrows() argument36 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument37 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() argument38 MoveThrows& operator=(MoveThrows const&) { return *this; } in operator =() argument39 MoveThrows& operator=(MoveThrows&&) { throw 42; } in operator =() argument40 ~MoveThrows() { --alive; } in ~MoveThrows() argument43 int MoveThrows::alive = 0;
41 struct MoveThrows { struct43 MoveThrows() { ++alive; } in MoveThrows() argument44 MoveThrows(MoveThrows const&) {++alive;} in MoveThrows() argument45 MoveThrows(MoveThrows&&) { throw 42; } in MoveThrows() argument46 MoveThrows& operator=(MoveThrows const&) { return *this; }47 MoveThrows& operator=(MoveThrows&&) { throw 42; }48 ~MoveThrows() { --alive; } in ~MoveThrows() argument51 int MoveThrows::alive = 0;
171 struct MoveThrows { struct173 MoveThrows() { ++alive; } in MoveThrows() argument174 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() function175 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() function176 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument177 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument178 ~MoveThrows() { --alive; } in ~MoveThrows() argument181 int MoveThrows::alive = 0;492 using V = std::variant<int, MoveThrows, std::string>; in test_copy_assignment_different_index()494 V v2(std::in_place_type<MoveThrows>); in test_copy_assignment_different_index()[all …]
164 struct MoveThrows { struct166 MoveThrows() { ++alive; } in MoveThrows() function167 MoveThrows(const MoveThrows &) { ++alive; } in MoveThrows() function168 MoveThrows(MoveThrows &&) { throw 42; } in MoveThrows() function169 MoveThrows &operator=(const MoveThrows &) { return *this; } in operator =() argument170 MoveThrows &operator=(MoveThrows &&) { throw 42; } in operator =() argument171 ~MoveThrows() { --alive; } in ~MoveThrows() argument174 int MoveThrows::alive = 0;485 using V = std::variant<int, MoveThrows, std::string>; in test_copy_assignment_different_index()487 V v2(std::in_place_type<MoveThrows>); in test_copy_assignment_different_index()[all …]