title | description | ms.date | f1_keywords | helpviewer_keywords | ||
---|---|---|---|---|---|---|
endian enum | enum used to specify the endianness of scalar types | 08/27/2020 |
|
|
Indicates the endianness of all scalar types.
enumclassendian { little = 0, big = 1, native = little };
Element | Description |
---|---|
little | Indicates that scalar types are little-endian. That is, the least significant byte is stored in the smallest address. For example, 0x1234 is stored 0x34 0x12 . |
big | Indicates that scalar types are big-endian, that is, the most significant byte is stored in the smallest address. For example, 0x1234 is stored 0x12 0x34 . |
All native scalar types are little-endian for the platforms that Microsoft Visual C++ targets (x86, x64, ARM, ARM64).
Header:<bit>
Namespace:std
Compiler option: /std:c++20
or later is required.