Namespaces
Variants

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

From cppreference.com
Andreas Krug (talk | contribs)
m fmt
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...
 
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}}
{{dcl begin}}
{{headervector||
{{dcl header|vector}}
{{dcl rev multi|
|dcl1=
void flip();
void flip();
|since2=c++20|dcl2=
constexpr void flip();
}}
}}
{{dcl end}}


Toggles each {{c|bool}} in the {{rlp|/|vector}} (replaces with its opposite value).
Toggles each {{c|bool}} in the {{rlp|/|vector}}.
 
===Parameters===
(none)
 
===Return value===
(none)


===Example===
===Example===

Latest revision as of 22:46, 10 December 2024