forward_list::remove

Erases elements in a forward list that matches a specified value.

void remove(const Type& _Val);

Parameters

Parameter

Description

_Val

The value which, if held by an element, will result in that element's removal from the list.

Remarks

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.

Requirements

Header: <forward_list>

Namespace: std

See Also

Reference

forward_list Class