Сообщение Re[4]: единица памяти С++ от 05.03.2015 1:56
Изменено 05.03.2015 4:42 jazzer
Здравствуйте, _NN_, Вы писали:
_NN>Точнее 1 байт это не обязательно 8 бит![](/Forum/Images/smile.gif)
А еще точнее — не меньше 8 бит:
![](/Forum/Images/beer.gif)
_NN>Точнее 1 байт это не обязательно 8 бит
![](/Forum/Images/smile.gif)
А еще точнее — не меньше 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.
![](/Forum/Images/beer.gif)
Re[4]: единица памяти С++
Здравствуйте, _NN_, Вы писали:
_NN>Точнее 1 байт это не обязательно 8 бит![](/Forum/Images/smile.gif)
А еще точнее — не меньше 8 бит:
![](/Forum/Images/beer.gif)
UPD Да, эта добавка про минимум 8 бит из UTF-8 появилась в С++11, раньше ее не было и байт мог быть каким угодно, лишь бы в него влезал basic execution character set.
_NN>Точнее 1 байт это не обязательно 8 бит
![](/Forum/Images/smile.gif)
А еще точнее — не меньше 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.
![](/Forum/Images/beer.gif)
UPD Да, эта добавка про минимум 8 бит из UTF-8 появилась в С++11, раньше ее не было и байт мог быть каким угодно, лишь бы в него влезал basic execution character set.