std::vector<bool>::flip

std::vector<bool>::flip

Defined in header <vector>
void flip();

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

Parameters

(none).

Return value

(none).

See also

access specified element
(public member function of std::vector)
toggles the values of bits
(public member function of std::bitset)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/vector_bool/flip

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部