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

Method ExampleVirt

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

Source from the content-addressed store, hash-verified

18class ExampleVirt {
19public:
20 explicit ExampleVirt(int state) : state(state) { print_created(this, state); }
21 ExampleVirt(const ExampleVirt &e) : state(e.state) { print_copy_created(this); }
22 ExampleVirt(ExampleVirt &&e) noexcept : state(e.state) {
23 print_move_created(this);

Callers 1

test_overrideFunction · 0.80

Calls 3

print_createdFunction · 0.85
print_copy_createdFunction · 0.85
print_move_createdFunction · 0.85

Tested by

no test coverage detected