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

Method self4

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

return by const reference

Source from the content-addressed store, hash-verified

62 ExampleMandA &self2() { return *this; } // return by reference
63 const ExampleMandA &self3() const { return *this; } // return by const reference
64 ExampleMandA *self4() { return this; } // return by pointer
65 const ExampleMandA *self5() const { return this; } // return by const pointer
66
67 int internal1() const { return value; } // return by value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected