C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A draft for modern switch

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 27 May 2025 10:10:14 -0300
On Monday, 26 May 2025 19:21:02 Brasilia Standard Time Zhihao Yuan via Std-
Proposals wrote:
> - is this possible to apply to QString?

Sure, if the feature becomes interesting, we can add an if consteval version
of the public comparison so we can guide the compiler. Obviously, at runtime
out specialised AVX2 algorithms must be used, seeing as the standard library
has not seen fit to add a u16scmp() function, but is still adding useless
wchar_t content.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Platform & System Engineering

Received on 2025-05-27 13:10:24