MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / erase

Method erase

kratos/containers/pointer_vector_set.h:735–742  ·  view source on GitHub ↗

* @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

Source from the content-addressed store, hash-verified

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.

Callers 2

PointerVectorSetMethod · 0.45
UniqueMethod · 0.45

Calls 6

eraseFunction · 0.85
findFunction · 0.85
iteratorClass · 0.70
baseMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected