摘要:
STL里的位标识类,<bitset>STL bitset是一个STL类,用于处理以位和位标志表示的信息,std::bitset不是STL容器类,因为它不能调整长度,也不具备容器的其他特征(见容器特征),如通过迭代器进行访问。这是一个实用类,针对处理长度在编译阶段已知的位序列进行了优化。示例:#include <iostream>
#include <bitset>
#include <string>
int main()
{ bitset<8> eightBits; cout<<"The initial cont 阅读全文