[SG16-Unicode] code_unit_sequence and code_point_sequence

Lyberta lyberta at lyberta.net
Tue Jun 19 15:50:00 CEST 2018


Martinho Fernandes:
> But why does the user need to know about it? When presented this way,
> it's just an implementation detail. When would the user ever actually
> want to create and use objects of type code_unit_sequence directly?

Same thing with std::char_traits. I never needed to call
std::char_traits<...> member functions yet they are specified in the
standard.

> If you say that
> basic_string can do this job just fine, what is a strong motivating
> example for adding another specialized sequence container type?

The main motivation is actually replacing it. std::basic_string was
designed without any Unicode handling in mind so it doesn't belong in
the standard nowadays. I hope to see it deprecated by C++26 and
completely removed in C++32.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://www.open-std.org/pipermail/unicode/attachments/20180619/f9ce2ec0/attachment.bin 


More information about the Unicode mailing list