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

Method self1

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

Source from the content-addressed store, hash-verified

59 void consume_str(std::string &&) {}
60
61 ExampleMandA self1() { return *this; } // return by value
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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected