[SG16-Unicode] code_unit_sequence
Lyberta
lyberta at lyberta.net
Wed Jul 17 00:25:00 CEST 2019
JeanHeyd Meneide:
> I'm a bit curious: what does std::code_unit_sequence<char8_t> offer us that
> std::vector<char8_t> wouldn't? Is there something special we can do with
> code_unit_sequence (i.e., treat it like a string?) that we couldn't do with
> std::vector<char8_t> here? I'm trying to figure out what having a
> std::vector alias buys us in terms of compile-time interface.
Small buffer optimization. Yes, this is not reflected in API, we'll have
to reflect it in wording. Also, it's not char8_t, it's
std::unicode::utf8_code_unit. It is a strong type that can only be
explicitly constructed from char8_t.
I intend to make it possible to give std::vector or 3rd party class with
the same API to higher levels but haven't tested this yet.
-------------- 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/20190716/6fbd52e5/attachment.bin
More information about the Unicode
mailing list