MCPcopy Create free account
hub / github.com/pybind/pybind11 / operator=

Method operator=

tests/test_methods_and_attributes.cpp:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 std::string toString() const { return "ExampleMandA[value=" + std::to_string(value) + "]"; }
35
36 void operator=(const ExampleMandA &e) {
37 print_copy_assigned(this);
38 value = e.value;
39 }
40 void operator=(ExampleMandA &&e) noexcept {
41 print_move_assigned(this);
42 value = e.value;

Callers

nothing calls this directly

Calls 2

print_copy_assignedFunction · 0.85
print_move_assignedFunction · 0.85

Tested by

no test coverage detected