operator ==

== 運算子是 OMString 用來判定兩個物件是否相等的比較函數。

可見性
Public
簽章
int operator==(const OMString& s2) const

int operator==(const char * c2) const

inline int operator==(const char * c1, 
   const OMString& s2)
簽章 1 的參數
s2

要與現行字串相比較的字串

簽章 2 的參數
c2

要與現行字元相比較的字元

簽章 3 的參數
c1

要與指定字串相比較的字元

s2

要與指定字元相比較的字串

傳回

此方法會傳回下列其中一項值:


回饋