Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The std::remove and std::remove_if compact a range so that the leading sub-range [begin, last) does not contain any elements that match the provided value or for which the predicate evaluates to true. The number of elements in the underlying range is unaffected, the non-removed elements maintain their relative order, and the subrange [last, end) contains elements in a moved-from state (for elements that did not match the value or predicate). Compiler Explorer link: https://lnkd.in/ecV6t-hY #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories