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


The element to be exchanged with the Right element.


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
© 2015 Microsoft