vector<bool>::swap

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
);

Left

The element to be exchanged with the Right element.

Right

The element to be exchanged with the Left element.

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().

Header: <vector>

Namespace: std

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft