xtd 0.2.0
Loading...
Searching...
No Matches

◆ clear()

template<typename type_t >
virtual void xtd::collections::generic::icollection< type_t >::clear ( )
pure virtual

Removes all items from the xtd::collections::generic::icollection <type_t>.

Exceptions
xtd::not_supported_exceptionThe xtd::collections::generic::icollection <type_t> is read-only.
Remarks
xtd::collections::generic::icollection::count must be set to 0, and references to other objects from elements of the collection must be released.

Implemented in xtd::collections::generic::list< type_t, allocator_t >.