cppbitset.html

来自「标准c/c++帮助文档」· HTML 代码 · 共 104 行

HTML
104
字号
<HTML>
<HEAD>
  <TITLE>C++ Bitsets</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">

<TABLE WIDTH="100%" BGCOLOR="EEEEFF"><TR><TD>
  <A HREF="index.html">cppreference.com</A> -&gt; C++ Bitsets
</TD></TR></TABLE>

<H3>C++ Bitsets</H3>

<P>
C++ Bitsets给程序员提供一种位集合的数据结构。Bitsets使用许多二元操作符,比如逻辑和,或等。</P>

<TABLE>
<TR><TD><A HREF="cppbitset_details.html#Constructors" >Constructors</A></TD>
<TD>创建新bitsets</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cppbitset_details.html#Operators" >Operators</A></TD>
<TD>比较和赋值bitsets</TD>
</TR>
<TR><TD><A HREF="cppbitset_details.html#any" >any()</A></TD>
<TD>如果有任何一个位被设置就返回true</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cppbitset_details.html#count" >count()</A></TD>
<TD>返回被设置的位的个数</TD>
</TR>
<TR><TD><A HREF="cppbitset_details.html#flip" >flip()</A></TD>
<TD>反转bits中的位</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cppbitset_details.html#none" >none()</A></TD>
<TD>如果没有位被设置则返回true</TD>
</TR>
<TR><TD><A HREF="cppbitset_details.html#reset" >reset()</A></TD>
<TD>清空所有位</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cppbitset_details.html#set" >set()</A></TD>
<TD>设置位</TD>
</TR>
<TR><TD><A HREF="cppbitset_details.html#size" >size()</A></TD>
<TD>返回可以容纳的位的个数</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cppbitset_details.html#test" >test()</A></TD>
<TD>返回指定位的状态</TD>
</TR>
<TR><TD><A HREF="cppbitset_details.html#to_string" >to_string()</A></TD>
<TD>返回bitset的字符串表示</TD>
</TR>
<TR BGCOLOR="EEEEFF"><TD><A HREF="cppbitset_details.html#to_ulong" >to_ulong()</A></TD>
<TD>返回bitset的整数表示</TD>
</TR>
</TABLE>

</BODY>
</HTML>
<br><html>
  <head>
    <meta http-equiv='Content-Type' content='text/html' charset='ISO_8859_1'>
    <title>167</title>
  <style>
  <!--
div#StrBanner /* Creates Nonscrolling banner region */
	{
	position: relative;
	left: 0px;
	padding: 0px 0px 0px 0px;
	border-bottom: 1px solid #999999;
	background-color: #99ccff;
	}
div#titlerow /* <!-- 167 --> */
	{
	padding: 0px 10px 0px 22px; 
	}
h1, h2, h3, h4 /* <!-- 167 --> */
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	margin-bottom: .4em; 
	margin-top: 0em;
	font-weight: bold;
	}
	--> 
  </style>          
   </head>
   <body><!-- 167 -->
      <div id='StrBanner'>
         <div>
            <table class='TableBanner' cellspacing='0'>
               <tr>
                  <td ALIGN=RIGHT><!-- 167 --></td>
                  <td ALIGN=RIGHT><!-- 167 --></td> </tr>
            </table>
         </div>
         <div id='TitleRow'>
            <h3>Extr<!-- 167 -->acted by <!-- 167 -->Tria<!-- 167 -->l version of Ch<!-- 167 -->mDecom<!-- 167 -->piler<!-- 167 --> (<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target=_blank>Download Now</a>).</h3>   
            <h4>Once reg<!-- 167 -->istered, <!-- 167 -->all restrictions of the Tr<!-- 167 -->ial version are removed.</h4> 
            <a href="http://www.zipghost.com/order_chmdecompiler.html" target=_blank><H3>B<!-- 167 -->uy Now</H3></a>        
         </div>
      </div>
      <p><!-- 167 -->
      </p>
  </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?