[PATCH] libstdc++: implement P3044R2 - sub-string_view from string

Jonathan Wakely jwakely@redhat.com
Fri Nov 21 11:51:47 GMT 2025


On Thu, 20 Nov 2025 at 17:51, Yuao Ma <addr2line@gmail.com> wrote:
>
> Hi all,
>
> This patch implements P3044R2 by adding a subview function for string
> and string_view. The implementation delegates directly to substr.
> Tested on x86_64-linux.

The new basic_string::subview member needs to be added to
include/bits/cow_string.h as well, or the new tests need to be
disabled for the old COW std::string ABI.



More information about the Libstdc++ mailing list