[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/container/vector/swap2 [Back]  [Original]

std::swap(std::vector) cppreference.com
cppreference.com

std::swap(std::vector)

cppreference.com

<metanoindex/>

<tbody> </tbody>
template< class T, class Alloc > void swap( vector<T,Alloc>& lhs, vector<T,Alloc>& rhs );
std::swap std::vector. lhs rhs. lhs.swap(rhs).
:
Specializes the std::swap algorithm for std::vector. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs).
Google.
. .

lhs, rhs
,
:
containers whose contents to swap
Google.
. .

()

.

.


(public -) []

Web Proxy Viewer  |  New URL  |  Original Page