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

Method add9

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

passing by const reference NOLINTNEXTLINE(readability-non-const-parameter) Deliberately non-const for testing

Source from the content-addressed store, hash-verified

54 void add8(const int &other) { value += other; } // passing by const reference
55 // NOLINTNEXTLINE(readability-non-const-parameter) Deliberately non-const for testing
56 void add9(int *other) { value += *other; } // passing by pointer
57 void add10(const int *other) { value += *other; } // passing by const pointer
58
59 void consume_str(std::string &&) {}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected