std::swap(std::vector)
std::swap(std::vector)
template< class T, class Alloc > void swap( vector<T,Alloc>& lhs, vector<T,Alloc>& rhs ); | (until C++17) | |
template< class T, class Alloc > void swap( vector<T,Alloc>& lhs, vector<T,Alloc>& rhs ) noexcept(/* see below */); | (since C++17) |