Template:cpp/container/vector bool/dsc swap2

{{dcl | template< class T, class Alloc > void swap( {{{1}}} &lhs, {{{1}}} &rhs ); {{dcl end}}

Specializes the {{lc|std::swap}} algorithm for {{c|std::vector }}. Swaps the contents of {{tt|lhs}} and {{tt|rhs}}. Calls {{c|lhs.swap(rhs)}}.

Return value
(none)

Complexity
Constant.