C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Forbid optimisations on std::basic_string implementations.

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 18 Aug 2025 17:17:38 +0100
On Mon, 18 Aug 2025 at 16:12, Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Monday, 18 August 2025 07:51:25 Pacific Daylight Time Yexuan Xiao via
> Std-
> Proposals wrote:
> > The "basic" in the C++ standard library does not imply anything.
>
> It does. But unlike what the OP seems to be implying, it does not mean
> "simple" or "trivial" functionality. It means it's the template class that
> takes different char types and allocators.


Exactly. It's an adjective that my dictionary defines as "referring to or
forming the base or basis of something".

std::basic_string is the basis for std::string and std::pmr::string.
std::basic_stringbuf is the basis for std::stringbuf and std::wstringbuf.
std::basic_stacktrace is the basis for std::stacktrace.
etc.

Received on 2025-08-18 16:17:57