MCPcopy Create free account
hub / github.com/ceph/ceph / operator->

Method operator->

src/include/alloc_ptr.h:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 return *ptr;
60 }
61 element_type* operator->() const {
62 if (!ptr)
63 ptr.reset(new element_type);
64 return ptr.get();
65 }
66 operator bool() const {
67 return !!ptr;
68 }

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected