Lines Matching refs:deleter
45 deleter(d), in UVector()
78 if (elements[i].pointer != nullptr && deleter != nullptr) { in assign()
79 (*deleter)(elements[i].pointer); in assign()
111 U_ASSERT(deleter == nullptr); in addElement()
118 U_ASSERT(deleter != nullptr); in adoptElement()
122 (*deleter)(obj); in adoptElement()
126 U_ASSERT(deleter == nullptr); // Usage error. Mixing up ints and pointers. in addElement()
136 if (elements[index].pointer != nullptr && deleter != nullptr) { in setElementAt()
137 (*deleter)(elements[index].pointer); in setElementAt()
142 if (deleter != nullptr) { in setElementAt()
143 (*deleter)(obj); in setElementAt()
149 U_ASSERT(deleter == nullptr); // Usage error. Mixing up ints and pointers. in setElementAt()
170 if (U_FAILURE(status) && deleter != nullptr) { in insertElementAt()
171 (*deleter)(obj); in insertElementAt()
176 U_ASSERT(deleter == nullptr); // Usage error. Mixing up ints and pointers. in insertElementAt()
245 if (e != nullptr && deleter != nullptr) { in removeElementAt()
246 (*deleter)(e); in removeElementAt()
260 if (deleter != nullptr) { in removeAllElements()
263 (*deleter)(elements[i].pointer); in removeAllElements()
437 UObjectDeleter *old = deleter; in setDeleter()
438 deleter = d; in setDeleter()
487 U_ASSERT(deleter == nullptr); in sortedInsert()
501 if (deleter != nullptr) { in sortedInsert()
502 (*deleter)(e.pointer); in sortedInsert()