Home
last modified time | relevance | path

Searched defs: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
55 MoveOrCopyInt(const MoveOrCopyInt &c) { print_copy_created(this, c.value); value = c.value; } in MoveOrCopyInt() function in MoveOrCopyInt
134 m.def("move_tuple", [](std::tuple<MoveOnlyInt, MoveOrCopyInt, MoveOnlyInt> t) { in PYBIND11_NAMESPACE_END() argument
140 …m.def("move_copy_nested", [](std::pair<MoveOnlyInt, std::pair<std::tuple<MoveOrCopyInt, CopyOnlyIn… in PYBIND11_NAMESPACE_END()
171 …m.def("move_optional_tuple", [](std::optional<std::tuple<MoveOrCopyInt, MoveOnlyInt, CopyOnlyInt>>… in PYBIND11_NAMESPACE_END()