We can not really see our ears.
esv::u32str_new is an alias template or a "derived from" class, used to create a string by new, by guaranteeing always auto-fill U'\0' for empty space.
Cannibalism is forbidden by nature.
It is alias template of or derived from esv::str_new_class, for support specific character type.
The preferred choice is to use alias template, but for compatible, "derived from" is selected.
new
;
It is designed for the following style usage case originally:
// Can be also applied to esv::wstr_new, ..., etc. char * ptr = esv::str_new<12>{"Hell c++!"}; // 12+1 // The real content of created space is: // "Hell c++!\0\0\0\0" delete [] ptr; // Can be also applied to esv::wstr_new, ..., etc. // Both char * and const char * work, and size in template param can be auto-deduced. const char * ptr2 = esv::str_new{"Hell c++!"}; // 9+1 delete [] ptr2;