Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_copy_move.cpp49 class MoveOrCopyInt { class
51 MoveOrCopyInt() { print_default_created(this); } in MoveOrCopyInt() function in MoveOrCopyInt
52 MoveOrCopyInt(int v) : value{std::move(v)} { print_created(this, value); } in MoveOrCopyInt() function in MoveOrCopyInt
53MoveOrCopyInt(MoveOrCopyInt &&m) { print_move_created(this, m.value); std::swap(value, m.value); } in MoveOrCopyInt() function in MoveOrCopyInt
54MoveOrCopyInt &operator=(MoveOrCopyInt &&m) { print_move_assigned(this, m.value); std::swap(value,… in operator =()
55 MoveOrCopyInt(const MoveOrCopyInt &c) { print_copy_created(this, c.value); value = c.value; } in MoveOrCopyInt() function in MoveOrCopyInt
56MoveOrCopyInt &operator=(const MoveOrCopyInt &c) { print_copy_assigned(this, c.value); value = c.v… in operator =()
57 ~MoveOrCopyInt() { print_destroyed(this); } in ~MoveOrCopyInt()
79 template <> struct type_caster<MoveOrCopyInt> {
80 PYBIND11_TYPE_CASTER(MoveOrCopyInt, _("MoveOrCopyInt"));
[all …]