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

Function run

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

Source from the content-addressed store, hash-verified

52 using ExampleVirt::ExampleVirt; /* Inherit constructors */
53
54 int run(int value) override {
55 /* Generate wrapping code that enables native function overloading */
56 PYBIND11_OVERRIDE(int, /* Return type */
57 ExampleVirt, /* Parent class */
58 run, /* Name of function */
59 value /* Argument(s) */
60 );
61 }
62
63 bool run_bool() override {
64 PYBIND11_OVERRIDE_PURE(bool, /* Return type */

Callers 1

operator()Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected