std::basic_string: for more than just text
summary
Claims that std::basic_string is a general-purpose contiguous container, not just text, and shows using it for bits, named bit directions, and aggregating timestamps for a C API. Demonstrates using the += and data() string API instead of vector append, and shows small string optimization saving heap new/delete — a three-element example compiles without allocation. Replaces vector of points with basic_string of a non-char type and reports equal or better performance.
AI-written summary · about
related talks
01h 02mBack to Basics: Almost Always Vector
28mOptimizing A String Class for Computer Graphics in Cpp
39mBack to Basics: The Rule of Five in C++
01h 05mC++ Regular, Revisited
58mUnderstanding and Mastering C++'s Complexity
01h 04mBack to Basics: Move Semantics
48mBack to Basics: Cpp Value Semantics
01h 04mFunctional C++ for Fun and Profit
