Software Bits Newsletter • 206 implied HN points • 27 May 23
- Removing elements from a vector can be inefficient due to shifting elements.
- Removing elements from the end of a vector is faster than from the beginning.
- Using std::erase_if or std::partition can efficiently remove elements based on conditions.