c++utf-8charutf-16utf

Are char8_t and char16_t dynamic in size?


Here is what I know:

Here is what I wonder:


Solution

  • char8_t and char16_t are dynamic in size?

    No.

    Are char8_t and char16_t in C++ are dynamic in size too (to fit in the generic behaviour of UTF-8 and UTF-16) ?

    No.

    Will it ever happen that when I assign it a "special" value, it will automatically expand its own size to match?

    No.