#include
<cstddef>
template <typename IntegralType> IntegralType to_integer(std::byte b) // C++17
Konvertiert Byte in Ganzzahl.
b | Byte |
Rückgabewert: Zahlwert des Bytes.
.
#include <cstddef> int main() { std::byte b { 0b101010 }; return std::to_integer<unsigned long>(b); }