std::basic_string::empty
從 cppreference.com
< cpp | string | basic string
|
|
該頁由英文版wiki使用Google Translate機器翻譯而來。
該翻譯可能存在錯誤或用詞不當。鼠標停留在文本上可以看到原版本。你可以幫助我們修正錯誤或改進翻譯。參見說明請點擊這裡. |
| bool empty() const; |
||
檢查,如果該字符串沒有字符,即是否begin() == end().
原文:
Checks if the string has no characters, i.e. whether begin() == end().
目錄 |
[編輯] 參數
(無)
[編輯] 返回值
true,如果該字符串是空的,false其他方式
原文:
true if the string is empty, false otherwise
[編輯] 複雜度
常數
[編輯] 另請參閱
| returns the number of characters (公共成員函數) | |