std::vector<bool>::flip - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::vector<bool>::flip

From cppreference.com
< cpp‎ | container‎ | vector bool

Defined in header `<vector>` |  |
void flip(); |  |

Toggles each bool in the vector (replaces with its opposite value).

### [edit] Parameters

(none)

### [edit] Return value

(none)

### [edit] See also

operator[] | access specified element (public member function of `std::vector`) [edit]
flip | toggles the values of bits (public member function of `std::bitset`) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/vector_bool/flip&oldid=57332"