Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Static member function that exchanges two elements of Boolean vectors (vector<bool>) by using the proxy class vector<bool>::reference.
static void swap(
reference Left,
reference Right
);
Parameters
Left
The element to be exchanged with the Right element.Right
The element to be exchanged with the Left element.
Remarks
This overload supports the special proxy requirements of vector<bool>. vector::swap has the same functionality as the single-argument overload of vector<bool>::swap().
Requirements
Header: <vector>
Namespace: std