mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-24 16:51:57 -05:00
Add documentation for to_integer(byte) (#1144)
Co-authored-by: Werner Henze <w.henze@avm.de>
This commit is contained in:
parent
2e0d1ba48c
commit
b39e7e4b09
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user