Lines Matching refs:MoveOrCopyInt

49 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"));
81 bool load(handle src, bool) { value = MoveOrCopyInt(src.cast<int>()); return true; } in load()
82 …static handle cast(const MoveOrCopyInt &m, return_value_policy r, handle p) { return pybind11::cas… in cast()
116 r += py::cast<MoveOrCopyInt>(o).value; /* moves */ in PYBIND11_NAMESPACE_END()
119 auto m1(py::cast<MoveOrCopyInt>(o)); /* moves */ in PYBIND11_NAMESPACE_END()
129 m.def("move_or_copy", [](MoveOrCopyInt m) { return m.value; }); in PYBIND11_NAMESPACE_END()
131 m.def("move_pair", [](std::pair<MoveOnlyInt, MoveOrCopyInt> p) { in PYBIND11_NAMESPACE_END()
134 m.def("move_tuple", [](std::tuple<MoveOnlyInt, MoveOrCopyInt, MoveOnlyInt> t) { in PYBIND11_NAMESPACE_END() argument
140 …td::pair<MoveOnlyInt, std::pair<std::tuple<MoveOrCopyInt, CopyOnlyInt, std::tuple<MoveOnlyInt>>, M… in PYBIND11_NAMESPACE_END() argument
147 auto &mc = ConstructorStats::get<MoveOrCopyInt>(); in PYBIND11_NAMESPACE_END()
165 m.def("move_or_copy_optional", [](std::optional<MoveOrCopyInt> o) { in PYBIND11_NAMESPACE_END()
171 …m.def("move_optional_tuple", [](std::optional<std::tuple<MoveOrCopyInt, MoveOnlyInt, CopyOnlyInt>>… in PYBIND11_NAMESPACE_END() argument