Inhaltsverzeichnis

to_integer<IntegralType>()

#include <cstddef>

template <typename IntegralType> 
IntegralType to_integer(std::byte b)  // C++17

Konvertiert Byte in Ganzzahl.

Parameter

b Byte

Ergebnis

Rückgabewert: Zahlwert des Bytes.

Siehe auch

.

Beispiel

to_integer.cpp
#include <cstddef>
 
int main()
{
  std::byte b { 0b101010 };
  return std::to_integer<unsigned long>(b);
}