C++
容器 | Containers

std::vector<bool>::flip

STD::向量<bool>*翻转

Defined in header
void flip(

切换每个bool在向量%28中,用其相反的值%29替换。

参数

%280%29

返回值

%280%29

另见

operator[]access specified element (public member function of std::vector)
fliptoggles the values of bits (public member function of std::bitset)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/容器/载体[医]布尔/翻转