std::experimental::erase (std::)
From cppreference.com
Erases all elements that compare equal to value from the container.
Contents |
[edit] Parameters
c | - | container from which to erase |
value | - | value to be removed |
[edit] Complexity
Linear.
[edit] Example
Run this code
Output:
11141112111 42
[edit] See also
removes elements satisfying specific criteria (function template) | |
[[ cpp/experimental/{{{1}}}/erase_if | erase_if (std::{{{1}}})]] (library fundamentals 2 TS) |
erases all elements satisfying a predicate from a std::{{{1}}} (function template) |