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

Method add2

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

passing by value

Source from the content-addressed store, hash-verified

39 // NOLINTNEXTLINE(performance-unnecessary-value-param)
40 void add1(ExampleMandA other) { value += other.value; } // passing by value
41 void add2(ExampleMandA &other) { value += other.value; } // passing by reference
42 void add3(const ExampleMandA &other) { value += other.value; } // passing by const reference
43 void add4(ExampleMandA *other) { value += other->value; } // passing by pointer
44 void add5(const ExampleMandA *other) { value += other->value; } // passing by const pointer

Callers 4

test_copy_methodFunction · 0.95
test_eigen_ref_mutatorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected