std::basic_string::capacity
来自cppreference.com
                    
                                        
                    < cpp | string | basic string
                    
                                                            
                    | 
   | 
  该页由英文版wiki使用Google Translate机器翻译而来。 
 该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里.  | 
|   size_type capacity() const;  | 
||
返回的字符串的字符数,目前已分配的空间. 
原文:
Returns the number of characters that the string has currently allocated space for. 
目录 | 
[编辑] 参数
(无)
[编辑] 返回值
当前分配的存储容量
原文:
capacity of the currently allocated storage
[编辑] 复杂度
常数
[编辑] 另请参阅
|    返回字符数量   (公共成员函数)  | |
|     预留存储空间   (公共成员函数)  |