MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ~__libcpp_refstring

Method ~__libcpp_refstring

system/lib/libcxx/src/include/refstring.h:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108inline __libcpp_refstring::~__libcpp_refstring() {
109 if (__uses_refcount()) {
110 _Rep_base* rep = rep_from_data(__imp_);
111 if (__libcpp_atomic_add(&rep->count, count_t(-1)) < 0) {
112 ::operator delete(rep);
113 }
114 }
115}
116
117inline bool __libcpp_refstring::__uses_refcount() const {
118#if defined(_LIBCPP_CHECK_FOR_GCC_EMPTY_STRING_STORAGE)

Callers

nothing calls this directly

Calls 2

rep_from_dataFunction · 0.85
operator deleteFunction · 0.50

Tested by

no test coverage detected