std::byte

std::byte

Defined in header <cstddef>
enum class byte : unsigned char {} ;
(since C++17)

std::byte is a distinct type that implements the concept of byte as specified in the C++ language definition.

Like the character types (char, unsigned char, signed char) it can be used to access raw memory occupied by other objects (object representation), but unlike those types, it is not a character type and is not an arithmetic type. A byte i