Template:cpp/container/erase2

@1@ Erases all elements that compare equal to from the container. @2@ Erases all elements that satisfy the predicate from the container.

Return value
The number of erased elements.

Complexity
Linear. {{#switch:{{{1|}}}
 * list
 * forward_list=