std::basic_string::empty

從 cppreference.com
< cpp‎ | string‎ | basic string

 
 
字符串庫
null結尾的字符串
原文:
Null-terminated strings
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
位元組的字符串
多位元組字符串
寬字符串
原文:
Classes
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string
char_traits
 
std::basic_string
成員函數
原文:
Member functions
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string::basic_string
basic_string::operator=
basic_string::assign
basic_string::get_allocator
元素的訪問
原文:
Element access
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string::at
basic_string::operator[]
basic_string::front(C++11)
basic_string::back(C++11)
basic_string::data
basic_string::c_str
迭代器
原文:
Iterators
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string::begin
basic_string::cbegin

(C++11)
basic_string::end
basic_string::cend

(C++11)
basic_string::rbegin
basic_string::crbegin

(C++11)
basic_string::rend
basic_string::crend

(C++11)
容量
原文:
Capacity
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string::empty
basic_string::size
basic_string::length
basic_string::max_size
basic_string::reserve
basic_string::capacity
basic_string::shrink_to_fit(C++11)
操作
原文:
Operations
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string::clear
basic_string::insert
basic_string::erase
basic_string::push_back
basic_string::pop_back(C++11)
basic_string::append
basic_string::operator+=
basic_string::compare
basic_string::replace
basic_string::substr
basic_string::copy
basic_string::resize
basic_string::swap
搜索
原文:
Search
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string::find
basic_string::rfind
basic_string::find_first_of
basic_string::find_first_not_of
basic_string::find_last_of
basic_string::find_last_not_of
常量
原文:
Constants
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
basic_string::npos
非成員函數
原文:
Non-member functions
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
operator+
operator==
operator!=
operator<
operator>
operator<=
operator>=
swap(std::basic_string)
operator<<
operator>>
getline
stoi
stol
stoll
(C++11)
(C++11)
(C++11)
stoul
stoull
(C++11)
(C++11)
stof
stod
stold
(C++11)
(C++11)
(C++11)
to_string(C++11)
to_wstring(C++11)
Helper類
原文:
Helper classes
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡
hash<std::string>
hash<std::wstring>
hash<std::u32string>
hash<std::u16string>
(C++11)
 
bool empty() const;
檢查,如果該字符串沒有字符,即是否begin() == end().
原文:
Checks if the string has no characters, i.e. whether begin() == end().
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

目錄

[編輯] 參數

(無)
原文:
(none)
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

[編輯] 返回值

true,如果該字符串是空的,false其他方式
原文:
true if the string is empty, false otherwise
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

[編輯] 複雜度

常數
原文:
Constant
這段文字是通過 Google Translate 自動翻譯生成的。
您可以幫助我們檢查、糾正翻譯中的錯誤。詳情請點擊這裡

[編輯] 另請參閱

returns the number of characters
(公共成員函數) [edit]