std::string 与字符串所有权 | C++

本章覆盖:`std::string`;owning string;construction;copy / move;size;empty;append;substring 的基础;`c_str()`;C API interop;small string optimization 是实现优化,不是标准保证;深入 API 不在 STL 主体重复扩张。

本章知识点

  • std::string
  • owning string
  • construction
  • copy / move
  • size
  • empty
  • append
  • substring 的基础
  • c_str()
  • C API interop
  • small string optimization 是实现优化,不是标准保证
  • 深入 API 不在 STL 主体重复扩张