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

Method add1

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

NOLINTNEXTLINE(performance-unnecessary-value-param)

Source from the content-addressed store, hash-verified

44
45 // NOLINTNEXTLINE(performance-unnecessary-value-param)
46 void add1(ExampleMandA other) { value += other.value; } // passing by value
47 void add2(ExampleMandA &other) { value += other.value; } // passing by reference
48 void add3(const ExampleMandA &other) { value += other.value; } // passing by const reference
49 void add4(ExampleMandA *other) { value += other->value; } // passing by pointer

Callers 2

test_eigen_ref_mutatorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected