cpp/container/vector bool/flip: Difference between revisions
From cppreference.com
→See also: std::bitset::flip() |
m fmt. Besides, it would be convenient if over time std::vector<bool> gained most of the operations that std::bitset and boost::dynamic_bitset have... |
||
| (8 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{cpp/container/vector_bool/title | flip}} | {{cpp/container/vector_bool/title|flip}} | ||
{{cpp/container/vector_bool/navbar}} | {{cpp/container/vector_bool/navbar}} | ||
{{ | {{|header=vector| | ||
void flip(); | void flip(); | ||
}} | }} | ||
Toggles each {{c|bool}} | Toggles each {{c|bool}} (replaces with its opposite value) . | ||
=== | ====== | ||
( | |||
() | |||
===See also=== | ===See also=== | ||
{{begin}} | |||
{{ | {{|cpp/container/operator_at|vector}} | ||
{{ | {{|cpp/utility/bitset/flip}} | ||
{{ | {{end}} | ||
{{ | |||
deesfrit | |||