function template
std::byteswap
- Header
<bit>- Draft
- [bit.byteswap]
- Scope
std- cppreference
- std::byteswap
Synopsis
template<class T>
requires is_integral_v<T> || (bitint-width<T> != 0 && bitint-width<T> % 8 == 0)
[[nodiscard]] constexpr T byteswap(T value) noexcept;