std::basic_string<CharT,Traits,Allocator>::capacity

從 cppreference.com
< cpp‎ | string‎ | basic string
在2012年10月25日 (四) 13:00由TranslationBot對話 | 貢獻所做的修訂版本

(差異) ←上一修訂 | 最新修訂 (差異) | 下一修訂→ (差異)

 
 
 
std::basic_string
 
size_type capacity() const;
。返回的字符串的字符數,目前已分配的空間.
原文:
Returns the number of characters that the string has currently allocated space for.
文本通過谷歌翻譯機器翻譯。
你可以幫忙校正和驗證翻譯。點擊此處查看指示。

。參數。

。 (無)。
原文:
(none)
文本通過谷歌翻譯機器翻譯。
你可以幫忙校正和驗證翻譯。點擊此處查看指示。

===。 返回值。===

。當前分配的存儲容量。
原文:
capacity of the currently allocated storage
文本通過谷歌翻譯機器翻譯。
你可以幫忙校正和驗證翻譯。點擊此處查看指示。

。複雜性。

。常數。
原文:
Constant
文本通過谷歌翻譯機器翻譯。
你可以幫忙校正和驗證翻譯。點擊此處查看指示。

。另請參閱。

Template:cpp/string/basic string/dcl list sizeTemplate:cpp/string/basic string/dcl list reserve