Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 449 Bytes

uselessCallsRemove.md

File metadata and controls

11 lines (6 loc) · 449 Bytes

Pattern: Useless std::remove() call

Issue: -

Description

The return value of std::remove() is ignored. This function returns an iterator to the end of the range containing those elements that should be kept. Elements past new end remain valid but with unspecified values. Use the erase method of the container to delete them.

Further Reading