📄 cppbitset.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1st October 2002), see www.w3.org"> <title>C++ Bitsets</title> </head> <body bgcolor="#ffffff"> <table width="100%" bgcolor="#eeeeff"> <tr> <td><a href="index.html">cppreference.com</a> -> C++ Bitsets</td> </tr> </table> <h3>C++ Bitsets</h3> <p>C++ Bitsets give the programmer a set of bits as a data structure. Bitsets can be manipulated by various binary operators such as logical AND, OR, and so on.</p> <table> <tr> <td><a href="cppbitset_details.html#Constructors">Constructors</a></td> <td>create new bitsets</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cppbitset_details.html#Operators">Operators</a></td> <td>compare and assign bitsets</td> </tr> <tr> <td><a href="cppbitset_details.html#any">any()</a></td> <td>true if any bits are set</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cppbitset_details.html#count">count()</a></td> <td>how many bits are set</td> </tr> <tr> <td><a href="cppbitset_details.html#flip">flip()</a></td> <td>reverses the bitset</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cppbitset_details.html#none">none()</a></td> <td>true if no bits are set</td> </tr> <tr> <td><a href="cppbitset_details.html#reset">reset()</a></td> <td>clears bits</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cppbitset_details.html#set">set()</a></td> <td>sets bits</td> </tr> <tr> <td><a href="cppbitset_details.html#size">size()</a></td> <td>number of bits that the bitset can hold</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cppbitset_details.html#test">test()</a></td> <td>state of a given bit</td> </tr> <tr> <td><a href="cppbitset_details.html#to_string">to_string()</a></td> <td>string representation of the bitset</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="cppbitset_details.html#to_ulong">to_ulong()</a></td> <td>integer representation of the bitset</td> </tr> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -