다음을 통해 공유


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

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

See Also

Reference

vector Class

Standard Template Library