Skip to content

Commit

Permalink
Add documentation for to_integer(byte) (#1144)
Browse files Browse the repository at this point in the history
Co-authored-by: Werner Henze <[email protected]>
  • Loading branch information
beinhaerter and Werner Henze authored Feb 26, 2024
1 parent 2e0d1ba commit b39e7e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ constexpr byte operator~(byte b) noexcept;

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
template <typename T>
constexpr byte to_byte(T t) noexcept;
Expand Down

0 comments on commit b39e7e4

Please sign in to comment.