Megosztás a következőn keresztül:


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

See Also

Reference

forward_list Class