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)

Specializes the std::swap algorithm for 登录查看完整内容