vector<bool>::swap
Static specialization function that exchanges the elements of two Boolean vectors (vector<bool>) using the proxy class vector<bool>::reference.
static void swap(
reference Left,
reference Right
);
Parameters
Left
The vector whose elements are to be exchanged with those of the vector Right.Right
The vector whose elements are to be exchanged with those of the vector Left.
Remarks
This is a the specialization of vector::swap(Left, Right) to support the special proxy requirements of vector<bool>. The single-argument version of swap() is unchanged in functionality from vector::swap.
Requirements
Header: <vector>
Namespace: std