template<class CharType>
struct StringWithLength
{
size_t length;
CharType* str_buf;
};
フィールドの長さについてコメントを追加したいと思います。2 つの選択肢があります。
#1. "The field length is the size of str_buf by the byte"
(Consider "The worker is paid by the hour")
#2. "The field length is the size of str_buf in bytes"
英語を母国語とする人にとって、どちらがより自然ですか?
ありがとう。