Информация об изменениях

Сообщение Re[4]: единица памяти С++ от 05.03.2015 1:56

Изменено 05.03.2015 4:42 jazzer

Здравствуйте, _NN_, Вы писали:

_NN>Точнее 1 байт это не обязательно 8 бит


А еще точнее — не меньше 8 бит:

The fundamental storage unit in the C++ memory model is the byte. A byte is at least large enough to contain any member of the basic execution character set (2.3) and the eight-bit code units of the Unicode UTF-8 encoding form and is composed of a contiguous sequence of bits, the number of which is implementation-defined.

Re[4]: единица памяти С++
Здравствуйте, _NN_, Вы писали:

_NN>Точнее 1 байт это не обязательно 8 бит


А еще точнее — не меньше 8 бит:

The fundamental storage unit in the C++ memory model is the byte. A byte is at least large enough to contain any member of the basic execution character set (2.3) and the eight-bit code units of the Unicode UTF-8 encoding form and is composed of a contiguous sequence of bits, the number of which is implementation-defined.



UPD Да, эта добавка про минимум 8 бит из UTF-8 появилась в С++11, раньше ее не было и байт мог быть каким угодно, лишь бы в него влезал basic execution character set.