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

Method ref

tests/object.h:70–73  ·  view source on GitHub ↗

Create a nullptr reference

Source from the content-addressed store, hash-verified

68public:
69 /// Create a nullptr reference
70 ref() : m_ptr(nullptr) {
71 print_default_created(this);
72 track_default_created((ref_tag *) this);
73 }
74
75 /// Construct a reference from a pointer
76 explicit ref(T *ptr) : m_ptr(ptr) {

Calls 9

print_default_createdFunction · 0.85
track_default_createdFunction · 0.85
print_createdFunction · 0.85
track_createdFunction · 0.85
print_copy_createdFunction · 0.85
track_copy_createdFunction · 0.85
print_move_createdFunction · 0.85
track_move_createdFunction · 0.85
incRefMethod · 0.80