c++ - C++中的字符串类支持多少个字符?

标签 c++ linux gcc

<分区>

Possible Duplicate:
Maximum length of a std::basic_string<_CharT> string

我想知道 C++ 中的字符串类支持多少个字符。

谢谢..

最佳答案

std::string s;
s.max_size();

这应该告诉您最大尺寸是多少。

关于c++ - C++中的字符串类支持多少个字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3310284/

相关文章:

android - 在 Android 上使用 Qt C++ 截取屏幕截图

c++ - 检查 std::unordered_set::find 结果的代码将无法编译

python - Linux 终端 : nicely formatted -h output

c++ - 无法设置本地 C++ 开发环境

c++ - 如何仅从 linux SO 库中导出某些函数?

c++ - 我如何在 Windows 环境中使用 Xerces?

linux - ubuntu:操纵无线网络

linux - 在服务器启动时运行 shell 脚本以运行多个服务器 (CentOs 7)

c++ - 如何停止在共享库中实现的阻塞 pthread_join()

c - 这段C代码有什么问题吗?