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

Method get_self

tests/test_class.cpp:424–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422 virtual int foo() const { return value; }
423 virtual void *void_foo() { return static_cast<void *>(&value); }
424 virtual void *get_self() { return static_cast<void *>(this); }
425
426 private:
427 int value = 42;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected