在线文档教程
C++
容器 | Containers

std::vector<bool>::swap

STD::向量<bool>*全部门办法

Defined in header
static void swap(reference x, reference y

交换内容xy...

参数

x-std::vector::reference value to swap with y
y-std::vector<bool>::reference value to swap with x

返回值

%280%29

另见

referenceproxy class representing a reference to a single bool (class)
std::swap(std::vector)specializes the std::swap algorithm (function template)

© cppreference.com

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

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