Google. .
, . , .
( . .)
<metanoindex/>
std::vector
template< class T, class Alloc > void swap( vector<T,Alloc>& lhs, vector<T,Alloc>& rhs );
lhs
rhs
lhs.swap(rhs)
()
.