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

Method add10

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

passing by pointer

Source from the content-addressed store, hash-verified

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 &&) {}
60

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected