C++26 introduces three focused improvements to the string/string_view ecosystem. First, stringstream and bitset gain new constructors that accept string_view directly, eliminating the need for unnecessary temporary string conversions. Second, operator+ overloads are added so std::string and std::string_view can be concatenated directly — a long-standing ergonomic gap caused by a never-delivered string builder feature. These changes are purely additive and already available in Clang 18/19 and GCC 15.
Table of contents
Reminder: the role of string_viewP2495R3: Interfacing stringstream s with string_viewP2697R1: Interfacing bitset with string_viewP2591R5: Concatenation of strings and string viewsConclusionConnect deeperSort: