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

Method B

tests/test_smart_ptr.cpp:230–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228struct SharedFromThisRef {
229 struct B : std::enable_shared_from_this<B> {
230 B() { print_created(this); }
231 // NOLINTNEXTLINE(bugprone-copy-constructor-init, readability-redundant-member-init)
232 B(const B &) : std::enable_shared_from_this<B>() { print_copy_created(this); }
233 // NOLINTNEXTLINE(readability-redundant-member-init)

Callers

nothing calls this directly

Calls 3

print_createdFunction · 0.85
print_copy_createdFunction · 0.85
print_move_createdFunction · 0.85

Tested by

no test coverage detected