Searched refs:MoveOrCopyInt (Results 1 - 1 of 1) sorted by relevance
/gem5/ext/pybind11/tests/ | ||
H A D | test_copy_move.cpp | 49 class MoveOrCopyInt { class 51 MoveOrCopyInt() { print_default_created(this); } function in class:MoveOrCopyInt 52 MoveOrCopyInt(int v) : value{std::move(v)} { print_created(this, value); } function in class:MoveOrCopyInt 53 MoveOrCopyInt(MoveOrCopyInt &&m) { print_move_created(this, m.value); std::swap(value, m.value); } function in class:MoveOrCopyInt 54 MoveOrCopyInt &operator=(MoveOrCopyInt &&m) { print_move_assigned(this, m.value); std::swap(value, m.value); return *this; } 55 MoveOrCopyInt(const MoveOrCopyInt &c) { print_copy_created(this, c.value); value = c.value; } function in class:MoveOrCopyInt 56 MoveOrCopyInt [all...] |
Completed in 14 milliseconds