std::bitset的全部成员函数均为constexpr:在常量表达式求值中创建并使用std::bitset对象是可能的。 (C++23 起) 模板形参 N-要为bitset分配存储的位数 成员类型 reference 表示到一个位的引用的代理类 (类) 成员函数 (构造函数) 构造位集 (公开成员函数) ...
std::bitset classreference; std::bitset类包含std::bitset::reference作为可公开访问的嵌套类。此类用作允许用户与bitset的单个位交互的代理对象,因为标准 C++ 类型(如引用和指针)没有内建足够指定单个位的精度。 std::bitset::reference的基本用途是提供能从operator[]返回的左值。
bitset::flip Conversions bitset::to_string bitset::to_ulong bitset::to_ullong (C++11) Non-member functions operator&operator|operator^ operator<<operator>> Helper classes std::hash (C++11) classreference; Thestd::bitsetclass includesstd::bitset::referenceas a publicly-accessible nested class. Th...
std::bitset<N>::size C++ Utilities library std::bitset std::size_tsize()const; (noexcept since C++11) (constexpr since C++11) Returns the number of bits that the bitset holds. Parameters (none) Return value number of bits that the bitset holds, i.e. the template parameterN. ...
C++std::bitset::reference是提供 l-value 的嵌入式类,可以从std::bitset::operator[].任何通过位集执行的读或写操作std::bitset::reference最终读取或写入整个底层位集。 声明 以下是 std::bitset::reference 类形式 std::bitset 标头的声明。 C++98 ...
>bitset >basic_string 另外,可以参阅C 的字符串函数 # IO >cpp 风格 IO 可以了解 stringstream 类,以及 输入/输出操纵符 >C 风格 IO +fopen +freopen +sscanf +sprintf #算法库 >sort >unique >reverse >shuffle >nth_element >lower_bound >next_permutation ...
bitset−Bit manipulation(C++20) Containers library vector−deque−array(C++11) list−forward_list(C++11) inplace_vector(C++26) hive(C++26) map−multimap−set−multiset unordered_map(C++11) unordered_multimap(C++11) unordered_set(C++11) ...
std::hash<std::bitset> (C++11) Hash-Unterstützung für std::bitset Original: hash support for std::bitset The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (class Template-Spezialisierung) [edit] ...
space-efficient dynamic bitset (class template specialization) Iterator invalidation OperationsInvalidated All read only operationsNever. swap,std::swapend() clear,operator=,assignAlways. reserve,shrink_to_fitIf the vector changed capacity, all of them. If not, none. ...
std::hash<std::bitset> (C++11) soutien de hachage pour std::bitset Original: hash support for std::bitset The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique spécialisée) [edit]...