| 106 | } |
| 107 | |
| 108 | inline __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 | |
| 117 | inline bool __libcpp_refstring::__uses_refcount() const { |
| 118 | #if defined(_LIBCPP_CHECK_FOR_GCC_EMPTY_STRING_STORAGE) |
nothing calls this directly
no test coverage detected