forward_list::remove
Erases elements in a forward list that matches a specified value.
void remove(const Type& _Val);
Parameter |
Description |
---|---|
_Val |
The value which, if held by an element, will result in that element's removal from the list. |
The member function removes from the controlled sequence all elements, designated by the iterator P, for which *P == _Val.
The member function never throws an exception.
Header: <forward_list>
Namespace: std