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

Function PyTF6

tests/test_factory_constructors.cpp:116–119  ·  view source on GitHub ↗

Special constructor that allows the factory to construct a PyTF6 from a TestFactory6 only when an alias is needed:

Source from the content-addressed store, hash-verified

114 // Special constructor that allows the factory to construct a PyTF6 from a TestFactory6 only
115 // when an alias is needed:
116 explicit PyTF6(TestFactory6 &&base) : TestFactory6(std::move(base)) {
117 alias = true;
118 print_created(this, "move", value);
119 }
120 explicit PyTF6(int i) : TestFactory6(i) {
121 alias = true;
122 print_created(this, i);

Callers 1

PYBIND11_OVERRIDEFunction · 0.85

Calls 5

moveFunction · 0.85
print_createdFunction · 0.85
print_move_createdFunction · 0.85
print_copy_createdFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected