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

Method add5

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

passing by pointer

Source from the content-addressed store, hash-verified

48 void add3(const ExampleMandA &other) { value += other.value; } // passing by const reference
49 void add4(ExampleMandA *other) { value += other->value; } // passing by pointer
50 void add5(const ExampleMandA *other) { value += other->value; } // passing by const pointer
51
52 void add6(int other) { value += other; } // passing by value
53 void add7(int &other) { value += other; } // passing by reference

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected