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

Function track_created

tests/constructor_stats.h:245–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244template <class T, typename... Values>
245void track_created(T *inst, Values &&...values) {
246 auto &cst = ConstructorStats::get<T>();
247 cst.created(inst);
248 cst.value(std::forward<Values>(values)...);
249}
250template <class T, typename... Values>
251void track_destroyed(T *inst) {
252 ConstructorStats::get<T>().destroyed(inst);

Callers 2

print_createdFunction · 0.85
refMethod · 0.85

Calls 2

createdMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected