MCPcopy Create free account
hub / github.com/apple/coremltools / add8

Method add8

deps/pybind11/tests/test_methods_and_attributes.cpp:48–48  ·  view source on GitHub ↗

passing by reference

Source from the content-addressed store, hash-verified

46 void add6(int other) { value += other; } // passing by value
47 void add7(int &other) { value += other; } // passing by reference
48 void add8(const int &other) { value += other; } // passing by const reference
49 // NOLINTNEXTLINE(readability-non-const-parameter) Deliberately non-const for testing
50 void add9(int *other) { value += *other; } // passing by pointer
51 void add10(const int *other) { value += *other; } // passing by const pointer

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected