* @brief Erase an element at the specified position. * @details This function erases the element at the specified position and updates `mSortedPartSize` * to match the size of the data container. If the provided position is equal to `end()`, * it returns `end()`. * @param pos An iterator pointing to the position of the element to erase. * @return An iterator pointing to th
| 733 | * provided position was equal to `end()`. |
| 734 | */ |
| 735 | iterator erase(iterator pos) |
| 736 | { |
| 737 | if (pos.base() == mData.end()) |
| 738 | return mData.end(); |
| 739 | iterator new_end = iterator(mData.erase(pos.base())); |
| 740 | mSortedPartSize = mData.size(); |
| 741 | return new_end; |
| 742 | } |
| 743 | |
| 744 | /** |
| 745 | * @brief Erase a range of elements defined by iterators. |