cptr::detail::basic_list::remove

Erase the elements equal to value and return how many. Unlinked nodes are destroyed only at the end, so value may refer to an element of this list. If a comparison throws, the elements already found are erased, the rest are kept, and the exception propagates.

Synopsis

Declared in <cptr/list.hpp>

size_type
remove(T const& value);