Add documentation for to_integer(byte) (#1144)

Co-authored-by: Werner Henze <w.henze@avm.de>
This commit is contained in:
Werner Henze 2024-02-26 22:23:45 +01:00 committed by GitHub
parent 2e0d1ba48c
commit b39e7e4b09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,6 +133,13 @@ constexpr byte operator~(byte b) noexcept;
Bitwise negation of a `byte`. Flips all bits. Zeroes become ones, ones become zeroes. Bitwise negation of a `byte`. Flips all bits. Zeroes become ones, ones become zeroes.
```cpp
template <class IntegerType, class = std::enable_if_t<std::is_integral<IntegerType>::value>>
constexpr IntegerType to_integer(byte b) noexcept;
```
Convert the given `byte` value to an integral type.
```cpp ```cpp
template <typename T> template <typename T>
constexpr byte to_byte(T t) noexcept; constexpr byte to_byte(T t) noexcept;