📄 cset.operators.html
字号:
<html><!-- #BeginTemplate "/Templates/tmpl.dwt" --><!-- DW6 --><head><!-- #BeginEditable "doctitle" --> <title>PTypes: cset: operators</title><!-- #EndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="styles.css"></head><body bgcolor="#FFFFFF" leftmargin="40" marginwidth="40"><p><a href="../index.html"><img src="title-20.png" width="253" height="39" alt="C++ Portable Types Library (PTypes) Version 2.0" border="0"></a> <hr size="1" noshade><!-- #BeginEditable "body" --> <p class="hpath"><a href="index.html">Top</a>: <a href="basic.html">Basic types</a>: <a href="cset.html">cset</a>: Operators</p><blockquote> <pre class="lang">#include <ptypes.h>class cset {<span class="comment"> // assignment</span> cset& operator =(const cset& s);<span class="comment"> // union</span> cset& operator +=(const cset& s); cset& operator +=(char b); cset operator +(const cset& s) const; cset operator +(char b) const; friend cset operator +(char b, const cset& s);<span class="comment"> // difference</span> cset& operator -=(const cset& s); cset& operator -=(char b); cset operator -(const cset& s) const; cset operator -(char b) const;<span class="comment"> // intersection</span> cset& operator *=(const cset& s); cset operator *(const cset& s) const;<span class="comment"> // comparison</span> bool operator ==(const cset& s) const; bool operator !=(const cset& s) const; bool operator <=(const cset& s) const; bool operator >=(const cset& s) const;<span class="comment"> // membership</span> friend bool operator& (char b, const cset& s);}</pre></blockquote><p>The following rules apply to +,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -