Namespaces
Variants

cpp/container/vector bool/flip: Difference between revisions

From cppreference.com
Oli (talk | contribs)
See also: std::bitset::flip()
Space Mission (talk | contribs)
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}}
{{ddcl | header=vector |
{{|header=vector|
void flip();
void flip();
}}
}}


Toggles each {{c|bool}} in the vector (replaces with its opposite value).
Toggles each {{c|bool}} (replaces with its opposite value) .


===Parameters===
======
(none)


===Return value===
(none)
 
()


===See also===
===See also===
=====Member functions=====
{{begin}}
{{dcl list begin}}
{{|cpp/container/operator_at|vector}}
{{dcl list template | cpp/container/dcl list operator_at | vector}}
{{|cpp/utility/bitset/flip}}
{{dcl list end}}
{{end}}
 
====={{c|std::bitset}}=====
{{dcl list begin}}
{{dcl list template | cpp/utility/bitset/dcl list flip}}
{{dcl list end}}


[[de:cpp/container/vector bool/flip]]
deesfrit