forward_list::clear
Erases all the elements of a forward list.
void clear();
Remarks
This member function calls erase_after(before_begin(), end()).
Requirements
Header: <forward_list>
Namespace: std
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Erases all the elements of a forward list.
void clear();
This member function calls erase_after(before_begin(), end()).
Header: <forward_list>
Namespace: std