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

◆ swap()

template<typename type_t >
virtual void xtd::collections::generic::list< type_t >::swap ( list< type_t > &  other)
inlinevirtualnoexcept

Exchanges the contents and capacity of the container with those of other. Does not invoke any move, copy, or swap operations on individual elements.

Remarks
All iterators and references remain valid. The xtd::collections::generic::list::end() iterator is invalidated.