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

Method add6

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

Source from the content-addressed store, hash-verified

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
54 void add8(const int &other) { value += other; } // passing by const reference
55 // NOLINTNEXTLINE(readability-non-const-parameter) Deliberately non-const for testing

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected