MCPcopy Create free account
hub / github.com/pybind/pybind11 / Movable

Method Movable

tests/test_virtual_functions.cpp:124–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122class Movable {
123public:
124 Movable(int a, int b) : value{a + b} { print_created(this, a, b); }
125 Movable(const Movable &m) : value{m.value} { print_copy_created(this); }
126 Movable(Movable &&m) noexcept : value{m.value} { print_move_created(this); }
127 std::string get_value() const { return std::to_string(value); }

Callers 2

get_movableMethod · 0.80
get_movableMethod · 0.80

Calls 3

print_createdFunction · 0.85
print_copy_createdFunction · 0.85
print_move_createdFunction · 0.85

Tested by

no test coverage detected